Mock Version: 5.9 Mock Version: 5.9 Mock Version: 5.9 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/python-contourpy.spec'], chrootPath='/var/lib/mock/f42-build-side-1-3508588-46015/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=993gid=135user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.fs14q5w8:/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']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.fs14q5w8:/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'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '0ab773737b0248a4a723206e9ac03dab', '-D', '/var/lib/mock/f42-build-side-1-3508588-46015/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.fs14q5w8:/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 -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/python-contourpy.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1744675200 Wrote: /builddir/build/SRPMS/python-contourpy-1.3.2-1.fc42.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target riscv64 --nodeps /builddir/build/SPECS/python-contourpy.spec'], chrootPath='/var/lib/mock/f42-build-side-1-3508588-46015/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=993gid=135user='mockbuild'unshare_net=TrueraiseExc=FalseprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.fs14q5w8:/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']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.fs14q5w8:/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'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'dfaf998355b24e2c82f2e89978936663', '-D', '/var/lib/mock/f42-build-side-1-3508588-46015/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.fs14q5w8:/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 -br --noclean --target riscv64 --nodeps /builddir/build/SPECS/python-contourpy.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1744675200 Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.lhdiMe Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.edQF1T + umask 022 + cd /builddir/build/BUILD/python-contourpy-1.3.2-build + cd /builddir/build/BUILD/python-contourpy-1.3.2-build + rm -rf contourpy-1.3.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/contourpy-1.3.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd contourpy-1.3.2 + /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.PyPeJf + umask 022 + cd /builddir/build/BUILD/python-contourpy-1.3.2-build + cd contourpy-1.3.2 + 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.2-build/contourpy-1.3.2/.pyproject-builddir + echo -n + CFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -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 -fasynchronous-unwind-tables -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,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -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.2-build/contourpy-1.3.2/.pyproject-builddir + RPM_TOXENV=py313 + FEDORA=42 + 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.2-build/contourpy-1.3.2/pyproject-wheeldir --output /builddir/build/BUILD/python-contourpy-1.3.2-build/python-contourpy-1.3.2-1.fc42.riscv64-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.2, != 2.13.3 from build-system.requires Requirement not satisfied: pybind11 >= 2.13.2, != 2.13.3 Exiting dependency generation pass: build backend + cat /builddir/build/BUILD/python-contourpy-1.3.2-build/python-contourpy-1.3.2-1.fc42.riscv64-pyproject-buildrequires + rm -rfv '*.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-contourpy-1.3.2-1.fc42.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noprep --noclean --target riscv64 --nodeps /builddir/build/SPECS/python-contourpy.spec'], chrootPath='/var/lib/mock/f42-build-side-1-3508588-46015/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=993gid=135user='mockbuild'unshare_net=TrueraiseExc=FalseprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.fs14q5w8:/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']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.fs14q5w8:/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'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '425afea5341b45d99f78d7e785414356', '-D', '/var/lib/mock/f42-build-side-1-3508588-46015/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.fs14q5w8:/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 -br --noprep --noclean --target riscv64 --nodeps /builddir/build/SPECS/python-contourpy.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1744675200 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.GmixJs + umask 022 + cd /builddir/build/BUILD/python-contourpy-1.3.2-build + cd contourpy-1.3.2 + 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.2-build/contourpy-1.3.2/.pyproject-builddir + echo -n + CFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -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 -fasynchronous-unwind-tables -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,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -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.2-build/contourpy-1.3.2/.pyproject-builddir + RPM_TOXENV=py313 + FEDORA=42 + 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.2-build/contourpy-1.3.2/pyproject-wheeldir --output /builddir/build/BUILD/python-contourpy-1.3.2-build/python-contourpy-1.3.2-1.fc42.riscv64-pyproject-buildrequires -p -x test Handling meson >= 1.2.0 from build-system.requires Requirement satisfied: meson >= 1.2.0 (installed: meson 1.4.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.2, != 2.13.3 from build-system.requires Requirement satisfied: pybind11 >= 2.13.2, != 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 bokeh from pyproject.toml generated metadata: [optional-dependencies] mypy (contourpy) Ignoring alien requirement: bokeh Handling docutils-stubs from pyproject.toml generated metadata: [optional-dependencies] mypy (contourpy) Ignoring alien requirement: docutils-stubs Handling mypy == 1.15.0 from pyproject.toml generated metadata: [optional-dependencies] mypy (contourpy) Ignoring alien requirement: mypy == 1.15.0 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 bokeh; extra == "mypy" from Previously ignored alien requirements Ignoring alien requirement: bokeh; extra == "mypy" Handling docutils-stubs; extra == "mypy" from Previously ignored alien requirements Ignoring alien requirement: docutils-stubs; extra == "mypy" Handling mypy==1.15.0; extra == "mypy" from Previously ignored alien requirements Ignoring alien requirement: mypy==1.15.0; 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.2-build/python-contourpy-1.3.2-1.fc42.riscv64-pyproject-buildrequires + rm -rfv '*.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-contourpy-1.3.2-1.fc42.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noprep --noclean --target riscv64 --nodeps /builddir/build/SPECS/python-contourpy.spec'], chrootPath='/var/lib/mock/f42-build-side-1-3508588-46015/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=993gid=135user='mockbuild'unshare_net=TrueraiseExc=FalseprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.fs14q5w8:/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']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.fs14q5w8:/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'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'b3e36510a5204897a96d015c1870cada', '-D', '/var/lib/mock/f42-build-side-1-3508588-46015/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.fs14q5w8:/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 -br --noprep --noclean --target riscv64 --nodeps /builddir/build/SPECS/python-contourpy.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1744675200 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.N0oexm + umask 022 + cd /builddir/build/BUILD/python-contourpy-1.3.2-build + cd contourpy-1.3.2 + 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.2-build/contourpy-1.3.2/.pyproject-builddir + echo -n + CFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -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 -fasynchronous-unwind-tables -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,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -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.2-build/contourpy-1.3.2/.pyproject-builddir + RPM_TOXENV=py313 + FEDORA=42 + 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.2-build/contourpy-1.3.2/pyproject-wheeldir --output /builddir/build/BUILD/python-contourpy-1.3.2-build/python-contourpy-1.3.2-1.fc42.riscv64-pyproject-buildrequires -p -x test Handling meson >= 1.2.0 from build-system.requires Requirement satisfied: meson >= 1.2.0 (installed: meson 1.4.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.2, != 2.13.3 from build-system.requires Requirement satisfied: pybind11 >= 2.13.2, != 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.2.5) 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 bokeh from pyproject.toml generated metadata: [optional-dependencies] mypy (contourpy) Ignoring alien requirement: bokeh Handling docutils-stubs from pyproject.toml generated metadata: [optional-dependencies] mypy (contourpy) Ignoring alien requirement: docutils-stubs Handling mypy == 1.15.0 from pyproject.toml generated metadata: [optional-dependencies] mypy (contourpy) Ignoring alien requirement: mypy == 1.15.0 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 bokeh; extra == "mypy" from Previously ignored alien requirements Ignoring alien requirement: bokeh; extra == "mypy" Handling docutils-stubs; extra == "mypy" from Previously ignored alien requirements Ignoring alien requirement: docutils-stubs; extra == "mypy" Handling mypy==1.15.0; extra == "mypy" from Previously ignored alien requirements Ignoring alien requirement: mypy==1.15.0; 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.1.0) Handling pytest from pyproject.toml generated metadata: [optional-dependencies] test-no-images (contourpy) Requirement satisfied: pytest (installed: pytest 8.3.4) 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 15.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.2-build/python-contourpy-1.3.2-1.fc42.riscv64-pyproject-buildrequires + rm -rfv '*.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-contourpy-1.3.2-1.fc42.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target riscv64 --nodeps /builddir/build/SPECS/python-contourpy.spec'], chrootPath='/var/lib/mock/f42-build-side-1-3508588-46015/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=993gid=135user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.fs14q5w8:/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']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.fs14q5w8:/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'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '8ba40eb6a3ac4d38af2fc4e6df4f0bfa', '-D', '/var/lib/mock/f42-build-side-1-3508588-46015/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.fs14q5w8:/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 --noclean --target riscv64 --nodeps /builddir/build/SPECS/python-contourpy.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1744675200 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.QaIjWp + umask 022 + cd /builddir/build/BUILD/python-contourpy-1.3.2-build + cd contourpy-1.3.2 + 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.2-build/contourpy-1.3.2/.pyproject-builddir + echo -n + CFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -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 -fasynchronous-unwind-tables -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,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -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.2-build/contourpy-1.3.2/.pyproject-builddir + RPM_TOXENV=py313 + FEDORA=42 + 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.2-build/contourpy-1.3.2/pyproject-wheeldir --output /builddir/build/BUILD/python-contourpy-1.3.2-build/python-contourpy-1.3.2-1.fc42.riscv64-pyproject-buildrequires -p -x test Handling meson >= 1.2.0 from build-system.requires Requirement satisfied: meson >= 1.2.0 (installed: meson 1.4.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.2, != 2.13.3 from build-system.requires Requirement satisfied: pybind11 >= 2.13.2, != 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.2.5) 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 bokeh from pyproject.toml generated metadata: [optional-dependencies] mypy (contourpy) Ignoring alien requirement: bokeh Handling docutils-stubs from pyproject.toml generated metadata: [optional-dependencies] mypy (contourpy) Ignoring alien requirement: docutils-stubs Handling mypy == 1.15.0 from pyproject.toml generated metadata: [optional-dependencies] mypy (contourpy) Ignoring alien requirement: mypy == 1.15.0 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 bokeh; extra == "mypy" from Previously ignored alien requirements Ignoring alien requirement: bokeh; extra == "mypy" Handling docutils-stubs; extra == "mypy" from Previously ignored alien requirements Ignoring alien requirement: docutils-stubs; extra == "mypy" Handling mypy==1.15.0; extra == "mypy" from Previously ignored alien requirements Ignoring alien requirement: mypy==1.15.0; 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.1.0) Handling pytest from pyproject.toml generated metadata: [optional-dependencies] test-no-images (contourpy) Requirement satisfied: pytest (installed: pytest 8.3.4) 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 15.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.2-build/python-contourpy-1.3.2-1.fc42.riscv64-pyproject-buildrequires + rm -rfv '*.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.s3uvOY + umask 022 + cd /builddir/build/BUILD/python-contourpy-1.3.2-build + CFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -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 -fasynchronous-unwind-tables -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,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -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.2 + mkdir -p /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/.pyproject-builddir + CFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -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 -fasynchronous-unwind-tables -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,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -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.2-build/contourpy-1.3.2/.pyproject-builddir + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_wheel.py /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/pyproject-wheeldir Processing /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) + meson setup /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2 /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/.mesonpy-6bfjzjb5 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --vsenv --native-file=/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/.mesonpy-6bfjzjb5/meson-python-native-file.ini The Meson build system Version: 1.4.1 Source dir: /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2 Build dir: /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/.mesonpy-6bfjzjb5 Build type: native build Project name: contourpy Project version: 1.3.2 C++ compiler for the host machine: g++ (gcc 15.0.1 "g++ (GCC) 15.0.1 20250418 (Red Hat 15.0.1-0)") C++ linker for the host machine: g++ ld.bfd 2.44-3 Host machine cpu family: riscv64 Host machine cpu: riscv64 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.2 Build config host_cpu : riscv64 build_cpu : riscv64 cross_build : false optimization: 3 User defined options Native files: /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/.mesonpy-6bfjzjb5/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-riscv64-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 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.2 -MD -MQ src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/line_type.cpp.o -MF src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/line_type.cpp.o.d -o src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/line_type.cpp.o -c ../src/line_type.cpp [2/15] g++ -Isrc/_contourpy.cpython-313-riscv64-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 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.2 -MD -MQ src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/z_interp.cpp.o -MF src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/z_interp.cpp.o.d -o src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/z_interp.cpp.o -c ../src/z_interp.cpp [3/15] g++ -Isrc/_contourpy.cpython-313-riscv64-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 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.2 -MD -MQ src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/fill_type.cpp.o -MF src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/fill_type.cpp.o.d -o src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/fill_type.cpp.o -c ../src/fill_type.cpp [4/15] g++ -Isrc/_contourpy.cpython-313-riscv64-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 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.2 -MD -MQ src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/outer_or_hole.cpp.o -MF src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/outer_or_hole.cpp.o.d -o src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/outer_or_hole.cpp.o -c ../src/outer_or_hole.cpp [5/15] g++ -Isrc/_contourpy.cpython-313-riscv64-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 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.2 -MD -MQ src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/mpl2005.cpp.o -MF src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/mpl2005.cpp.o.d -o src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/mpl2005.cpp.o -c ../src/mpl2005.cpp [6/15] g++ -Isrc/_contourpy.cpython-313-riscv64-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 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.2 -MD -MQ src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/util.cpp.o -MF src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/util.cpp.o.d -o src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/util.cpp.o -c ../src/util.cpp [7/15] g++ -Isrc/_contourpy.cpython-313-riscv64-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 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.2 -MD -MQ src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/chunk_local.cpp.o -MF src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/chunk_local.cpp.o.d -o src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/chunk_local.cpp.o -c ../src/chunk_local.cpp [8/15] g++ -Isrc/_contourpy.cpython-313-riscv64-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 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.2 -MD -MQ src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/contour_generator.cpp.o -MF src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/contour_generator.cpp.o.d -o src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/contour_generator.cpp.o -c ../src/contour_generator.cpp [9/15] g++ -Isrc/_contourpy.cpython-313-riscv64-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 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.2 -MD -MQ src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/converter.cpp.o -MF src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/converter.cpp.o.d -o src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/converter.cpp.o -c ../src/converter.cpp [10/15] g++ -Isrc/_contourpy.cpython-313-riscv64-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 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.2 -MD -MQ src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/mpl2005_original.cpp.o -MF src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/mpl2005_original.cpp.o.d -o src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/mpl2005_original.cpp.o -c ../src/mpl2005_original.cpp [11/15] g++ -Isrc/_contourpy.cpython-313-riscv64-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 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.2 -MD -MQ src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/mpl2014.cpp.o -MF src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/mpl2014.cpp.o.d -o src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/mpl2014.cpp.o -c ../src/mpl2014.cpp [12/15] g++ -Isrc/_contourpy.cpython-313-riscv64-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 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.2 -MD -MQ src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/serial.cpp.o -MF src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/serial.cpp.o.d -o src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/serial.cpp.o -c ../src/serial.cpp [13/15] g++ -Isrc/_contourpy.cpython-313-riscv64-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 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.2 -MD -MQ src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/threaded.cpp.o -MF src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/threaded.cpp.o.d -o src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/threaded.cpp.o -c ../src/threaded.cpp [14/15] g++ -Isrc/_contourpy.cpython-313-riscv64-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 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.2 -MD -MQ src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/wrap.cpp.o -MF src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/wrap.cpp.o.d -o src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/wrap.cpp.o -c ../src/wrap.cpp [15/15] g++ -o src/_contourpy.cpython-313-riscv64-linux-gnu.so src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/chunk_local.cpp.o src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/contour_generator.cpp.o src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/converter.cpp.o src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/fill_type.cpp.o src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/line_type.cpp.o src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/mpl2005_original.cpp.o src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/mpl2005.cpp.o src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/mpl2014.cpp.o src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/outer_or_hole.cpp.o src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/serial.cpp.o src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/threaded.cpp.o src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/util.cpp.o src/_contourpy.cpython-313-riscv64-linux-gnu.so.p/wrap.cpp.o src/_contourpy.cpython-313-riscv64-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,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer [1/20] /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/.mesonpy-6bfjzjb5/src/_contourpy.cpython-313-riscv64-linux-gnu.so [2/20] /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/lib/contourpy/__init__.py [3/20] /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/lib/contourpy/_version.py [4/20] /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/lib/contourpy/array.py [5/20] /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/lib/contourpy/chunk.py [6/20] /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/lib/contourpy/convert.py [7/20] /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/lib/contourpy/dechunk.py [8/20] /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/lib/contourpy/enum_util.py [9/20] /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/lib/contourpy/typecheck.py [10/20] /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/lib/contourpy/types.py [11/20] /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/lib/contourpy/_contourpy.pyi [12/20] /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/lib/contourpy/py.typed [13/20] /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/lib/contourpy/util/__init__.py [14/20] /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/lib/contourpy/util/bokeh_renderer.py [15/20] /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/lib/contourpy/util/bokeh_util.py [16/20] /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/lib/contourpy/util/data.py [17/20] /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/lib/contourpy/util/mpl_renderer.py [18/20] /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/lib/contourpy/util/mpl_util.py [19/20] /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/lib/contourpy/util/renderer.py [20/20] /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/.mesonpy-6bfjzjb5/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.2-cp313-cp313-linux_riscv64.whl size=8320047 sha256=01c256d2aa72a85b1d73b7442fea40d4cdb3b5fbe89cd3f9d533661248e36725 Stored in directory: /builddir/.cache/pip/wheels/1f/21/80/4c2c7c80d66a6498a9d3ec05cdaa5ec5f9346f168ec6015aa7 Successfully built contourpy + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.ckNT9T + umask 022 + cd /builddir/build/BUILD/python-contourpy-1.3.2-build + '[' /builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT '!=' / ']' + rm -rf /builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT ++ dirname /builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT + mkdir -p /builddir/build/BUILD/python-contourpy-1.3.2-build + mkdir /builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT + CFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -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 -fasynchronous-unwind-tables -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,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -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.2 ++ xargs basename --multiple ++ ls /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/pyproject-wheeldir/contourpy-1.3.2-cp313-cp313-linux_riscv64.whl ++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/' + specifier=contourpy==1.3.2 + '[' -z contourpy==1.3.2 ']' + TMPDIR=/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/.pyproject-builddir + /usr/bin/python3 -m pip install --root /builddir/build/BUILD/python-contourpy-1.3.2-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.2-build/contourpy-1.3.2/pyproject-wheeldir contourpy==1.3.2 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.2-build/contourpy-1.3.2/pyproject-wheeldir Processing ./pyproject-wheeldir/contourpy-1.3.2-cp313-cp313-linux_riscv64.whl Installing collected packages: contourpy Successfully installed contourpy-1.3.2 + '[' -d /builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/bin ']' + rm -f /builddir/build/BUILD/python-contourpy-1.3.2-build/python-contourpy-1.3.2-1.fc42.riscv64-pyproject-ghost-distinfo + site_dirs=() + '[' -d /builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib/python3.13/site-packages ']' + '[' /builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages '!=' /builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib/python3.13/site-packages ']' + '[' -d /builddir/build/BUILD/python-contourpy-1.3.2-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.2-build/BUILDROOT$site_dir/*.dist-info + echo '%ghost /usr/lib64/python3.13/site-packages/contourpy-1.3.2.dist-info' + sed -i s/pip/rpm/ /builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy-1.3.2.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.2-build/BUILDROOT --record /builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy-1.3.2.dist-info/RECORD --output /builddir/build/BUILD/python-contourpy-1.3.2-build/python-contourpy-1.3.2-1.fc42.riscv64-pyproject-record + rm -fv /builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy-1.3.2.dist-info/RECORD removed '/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy-1.3.2.dist-info/RECORD' + rm -fv /builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy-1.3.2.dist-info/REQUESTED removed '/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy-1.3.2.dist-info/REQUESTED' ++ cut -f1 '-d ' ++ wc -l /builddir/build/BUILD/python-contourpy-1.3.2-build/python-contourpy-1.3.2-1.fc42.riscv64-pyproject-ghost-distinfo + 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.2-build/python-contourpy-1.3.2-1.fc42.riscv64-pyproject-files --output-modules /builddir/build/BUILD/python-contourpy-1.3.2-build/python-contourpy-1.3.2-1.fc42.riscv64-pyproject-modules --buildroot /builddir/build/BUILD/python-contourpy-1.3.2-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.2-build/python-contourpy-1.3.2-1.fc42.riscv64-pyproject-record --prefix /usr contourpy + /usr/bin/find-debuginfo -j32 --strict-build-id -m -i --build-id-seed 1.3.2-1.fc42 --unique-debug-suffix -1.3.2-1.fc42.riscv64 --unique-debug-src-base python-contourpy-1.3.2-1.fc42.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2 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.2-1.fc42.riscv64 cpio: .mesonpy-6bfjzjb5/: 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 -j32 Bytecompiling .py files below /builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib/debug/usr/lib64/python3.13 using python3.13 Bytecompiling .py files below /builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13 using python3.13 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/bin/add-determinism --brp -j32 /builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT /builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/__pycache__/types.cpython-313.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/__pycache__/_version.cpython-313.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/__pycache__/__init__.cpython-313.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/__pycache__/chunk.cpython-313.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/__pycache__/_build_config.cpython-313.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/__pycache__/enum_util.cpython-313.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-contourpy-1.3.2-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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/__pycache__/data.cpython-313.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-contourpy-1.3.2-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.2-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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/__pycache__/bokeh_util.cpython-313.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/__pycache__/renderer.cpython-313.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-contourpy-1.3.2-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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/__pycache__/__init__.cpython-313.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-contourpy-1.3.2-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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/__pycache__/convert.cpython-313.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/__pycache__/bokeh_renderer.cpython-313.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/__pycache__/bokeh_renderer.cpython-313.pyc: replacing with normalized version /builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/__pycache__/mpl_renderer.cpython-313.opt-1.pyc: rewriting with normalized contents Scanned 21 directories and 91 files, processed 19 inodes, 19 modified (4 replaced + 15 rewritten), 0 unsupported format, 0 errors Reading /builddir/build/BUILD/python-contourpy-1.3.2-build/SPECPARTS/rpm-debuginfo.specpart Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.Z8s4Ti + umask 022 + cd /builddir/build/BUILD/python-contourpy-1.3.2-build + CFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -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 -fasynchronous-unwind-tables -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,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -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.2 + CFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -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.2-build/BUILDROOT/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PYTHONPATH=/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages:/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib/python3.13/site-packages + PYTHONDONTWRITEBYTECODE=1 + PYTEST_ADDOPTS=' --ignore=/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/.pyproject-builddir' + PYTEST_XDIST_AUTO_NUM_WORKERS=32 + /usr/bin/pytest ============================= test session starts ============================== platform linux -- Python 3.13.2, pytest-8.3.4, pluggy-1.5.0 rootdir: /builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2 configfile: pyproject.toml plugins: rerunfailures-15.0, cov-5.0.0, xdist-3.6.1 collected 2512 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%] ........................................................................ [ 8%] ........................................................................ [ 11%] ........................................................................ [ 14%] ........................................................................ [ 17%] ........................................................................ [ 20%] ........................................................................ [ 23%] ........................................................................ [ 26%] .. [ 26%] tests/test_convert.py .................................................. [ 28%] ........................................................................ [ 31%] ........................................................................ [ 33%] ........................................................................ [ 36%] ........................................................................ [ 39%] ........................................................................ [ 42%] ........................................................................ [ 45%] ...... [ 45%] tests/test_dechunk.py .................................................. [ 47%] ................ [ 48%] tests/test_enum.py ................. [ 49%] tests/test_filled.py ............FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 51%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 53%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 56%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 59%] F..........................................................ss........... [ 62%] .ssssssssss............................................................. [ 65%] ........................................................................ [ 68%] .........................................................ss............ [ 71%] tests/test_internal.py ................................ [ 72%] tests/test_lines.py ....................................FFFFFFFFFFFFFFFF [ 74%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 77%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 80%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF............ [ 83%] .....................................ss................................. [ 85%] ........................................................................ [ 88%] .........................ss.......... [ 90%] 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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_config.py", line 26, in test_config_filled from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_config.py", line 26, in test_config_filled from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_config.py", line 26, in test_config_filled from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_config.py", line 26, in test_config_filled from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/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 566, 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.2-build/contourpy-1.3.2/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.2-build/contourpy-1.3.2/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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/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 566, 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.2-build/contourpy-1.3.2/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.2-build/contourpy-1.3.2/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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_config.py", line 57, in test_config_filled_corner from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_config.py", line 57, in test_config_filled_corner from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_config.py", line 57, in test_config_filled_corner from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_config.py", line 72, in test_config_lines from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_config.py", line 72, in test_config_lines from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_config.py", line 72, in test_config_lines from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_config.py", line 72, in test_config_lines from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/contourpy-1.3.2/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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/contourpy-1.3.2/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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_config.py", line 104, in test_config_lines_corner from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_config.py", line 104, in test_config_lines_corner from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_config.py", line 104, in test_config_lines_corner from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 70, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 98, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:130: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 130, in test_filled_simple_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:130: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 130, in test_filled_simple_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:130: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 130, in test_filled_simple_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:130: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 130, in test_filled_simple_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:130: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 130, in test_filled_simple_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:130: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 130, in test_filled_simple_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-OuterCode] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:130: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 130, in test_filled_simple_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-OuterOffset] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:130: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 130, in test_filled_simple_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedCode] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:130: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 130, in test_filled_simple_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedOffset] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:130: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 130, in test_filled_simple_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedCodeOffset] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:130: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 130, in test_filled_simple_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedOffsetOffset] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:130: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 130, in test_filled_simple_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:156: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 156, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:156: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 156, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:156: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 156, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:156: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 156, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:156: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 156, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:156: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 156, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:156: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 156, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:156: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 156, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:156: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 156, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:156: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 156, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:156: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 156, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:156: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 156, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:156: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 156, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:156: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 156, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:178: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 178, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:178: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 178, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:178: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 178, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:178: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 178, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:178: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 178, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:178: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 178, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:178: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 178, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:178: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 178, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:178: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 178, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:178: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 178, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:178: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 178, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:178: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 178, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:178: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 178, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:178: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 178, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:207: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 207, in test_filled_simple_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:207: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 207, in test_filled_simple_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:207: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 207, in test_filled_simple_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:207: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 207, in test_filled_simple_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:207: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 207, in test_filled_simple_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:207: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 207, in test_filled_simple_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-OuterCode] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:207: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 207, in test_filled_simple_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-OuterOffset] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:207: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 207, in test_filled_simple_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedCode] _____ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:207: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 207, in test_filled_simple_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedOffset] ____ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:207: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 207, in test_filled_simple_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedCodeOffset] __ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:207: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 207, in test_filled_simple_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedOffsetOffset] _ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:207: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 207, in test_filled_simple_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:235: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 235, in test_filled_simple_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:235: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 235, in test_filled_simple_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:235: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 235, in test_filled_simple_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:258: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 258, in test_filled_simple_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:258: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 258, in test_filled_simple_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:258: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 258, in test_filled_simple_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:288: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 288, in test_filled_simple_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:288: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 288, in test_filled_simple_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:288: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 288, in test_filled_simple_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:288: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 288, in test_filled_simple_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:288: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 288, in test_filled_simple_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:288: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 288, in test_filled_simple_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-OuterCode] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:288: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 288, in test_filled_simple_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-OuterOffset] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:288: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 288, in test_filled_simple_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedCode] _______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:288: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 288, in test_filled_simple_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedOffset] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:288: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 288, in test_filled_simple_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedCodeOffset] ____ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:288: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 288, in test_filled_simple_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedOffsetOffset] ___ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:288: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 288, in test_filled_simple_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:317: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 317, in test_filled_simple_quad_as_tri from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:317: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 317, in test_filled_simple_quad_as_tri from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 341, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 369, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:415: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 415, in test_filled_random_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:415: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 415, in test_filled_random_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:415: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 415, in test_filled_random_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:415: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 415, in test_filled_random_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:415: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 415, in test_filled_random_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:415: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 415, in test_filled_random_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-OuterCode] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:415: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 415, in test_filled_random_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-OuterOffset] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:415: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 415, in test_filled_random_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedCode] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:415: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 415, in test_filled_random_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedOffset] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:415: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 415, in test_filled_random_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedCodeOffset] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:415: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 415, in test_filled_random_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedOffsetOffset] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:415: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 415, in test_filled_random_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:449: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 449, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:449: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 449, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:449: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 449, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:449: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 449, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:449: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 449, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:449: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 449, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:449: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 449, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:449: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 449, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:449: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 449, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:449: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 449, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:449: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 449, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:449: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 449, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:449: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 449, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:449: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 449, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 471, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 471, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 471, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 471, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 471, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 471, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 471, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 471, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 471, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 471, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 471, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 471, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 471, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 471, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:513: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 513, in test_filled_random_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:513: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 513, in test_filled_random_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:513: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 513, in test_filled_random_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:513: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 513, in test_filled_random_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:513: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 513, in test_filled_random_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:513: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 513, in test_filled_random_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-OuterCode] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:513: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 513, in test_filled_random_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-OuterOffset] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:513: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 513, in test_filled_random_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedCode] _____ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:513: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 513, in test_filled_random_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedOffset] ____ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:513: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 513, in test_filled_random_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedCodeOffset] __ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:513: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 513, in test_filled_random_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedOffsetOffset] _ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:513: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 513, in test_filled_random_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:548: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 548, in test_filled_random_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:548: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 548, in test_filled_random_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:548: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 548, in test_filled_random_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:571: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 571, in test_filled_random_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:571: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 571, in test_filled_random_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:571: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 571, in test_filled_random_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:607: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 607, in test_filled_random_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:607: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 607, in test_filled_random_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:607: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 607, in test_filled_random_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:607: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 607, in test_filled_random_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:607: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 607, in test_filled_random_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:607: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 607, in test_filled_random_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-OuterCode] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:607: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 607, in test_filled_random_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-OuterOffset] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:607: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 607, in test_filled_random_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedCode] _______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:607: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 607, in test_filled_random_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedOffset] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:607: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 607, in test_filled_random_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedCodeOffset] ____ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:607: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 607, in test_filled_random_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedOffsetOffset] ___ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 3 @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:607: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 607, in test_filled_random_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:636: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 636, in test_filled_random_quad_as_tri from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:636: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/tests/test_filled.py", line 636, in test_filled_random_quad_as_tri from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-Separate] __________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-SeparateCode] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedCode] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedOffset] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedNan] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-Separate] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-SeparateCode] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedCode] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedOffset] _____ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedNan] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-Separate] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-SeparateCode] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedCode] _______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedOffset] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedNan] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-Separate] __________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-SeparateCode] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedCode] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedOffset] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedNan] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-Separate] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-SeparateCode] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedCode] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedOffset] _____ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedNan] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-Separate] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-SeparateCode] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedCode] _______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedOffset] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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[3-ChunkCombinedNan] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 3 @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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to 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:7: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.2-build/contourpy-1.3.2/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.2-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 7, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.5 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be 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_chunk_threads[3-OuterCode] - ... FAILED tests/test_filled.py::test_filled_simple_chunk_threads[3-OuterOffset] FAILED tests/test_filled.py::test_filled_simple_chunk_threads[3-ChunkCombinedCode] FAILED tests/test_filled.py::test_filled_simple_chunk_threads[3-ChunkCombinedOffset] FAILED tests/test_filled.py::test_filled_simple_chunk_threads[3-ChunkCombinedCodeOffset] FAILED tests/test_filled.py::test_filled_simple_chunk_threads[3-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_no_corner_mask_chunk_threads[3-OuterCode] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask_chunk_threads[3-OuterOffset] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask_chunk_threads[3-ChunkCombinedCode] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask_chunk_threads[3-ChunkCombinedOffset] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask_chunk_threads[3-ChunkCombinedCodeOffset] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask_chunk_threads[3-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_corner_mask_chunk_threads[3-OuterCode] FAILED tests/test_filled.py::test_filled_simple_corner_mask_chunk_threads[3-OuterOffset] FAILED tests/test_filled.py::test_filled_simple_corner_mask_chunk_threads[3-ChunkCombinedCode] FAILED tests/test_filled.py::test_filled_simple_corner_mask_chunk_threads[3-ChunkCombinedOffset] FAILED tests/test_filled.py::test_filled_simple_corner_mask_chunk_threads[3-ChunkCombinedCodeOffset] FAILED tests/test_filled.py::test_filled_simple_corner_mask_chunk_threads[3-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_chunk_threads[3-OuterCode] - ... FAILED tests/test_filled.py::test_filled_random_chunk_threads[3-OuterOffset] FAILED tests/test_filled.py::test_filled_random_chunk_threads[3-ChunkCombinedCode] FAILED tests/test_filled.py::test_filled_random_chunk_threads[3-ChunkCombinedOffset] FAILED tests/test_filled.py::test_filled_random_chunk_threads[3-ChunkCombinedCodeOffset] FAILED tests/test_filled.py::test_filled_random_chunk_threads[3-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_no_corner_mask_chunk_threads[3-OuterCode] FAILED tests/test_filled.py::test_filled_random_no_corner_mask_chunk_threads[3-OuterOffset] FAILED tests/test_filled.py::test_filled_random_no_corner_mask_chunk_threads[3-ChunkCombinedCode] FAILED tests/test_filled.py::test_filled_random_no_corner_mask_chunk_threads[3-ChunkCombinedOffset] FAILED tests/test_filled.py::test_filled_random_no_corner_mask_chunk_threads[3-ChunkCombinedCodeOffset] FAILED tests/test_filled.py::test_filled_random_no_corner_mask_chunk_threads[3-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_corner_mask_chunk_threads[3-OuterCode] FAILED tests/test_filled.py::test_filled_random_corner_mask_chunk_threads[3-OuterOffset] FAILED tests/test_filled.py::test_filled_random_corner_mask_chunk_threads[3-ChunkCombinedCode] FAILED tests/test_filled.py::test_filled_random_corner_mask_chunk_threads[3-ChunkCombinedOffset] FAILED tests/test_filled.py::test_filled_random_corner_mask_chunk_threads[3-ChunkCombinedCodeOffset] FAILED tests/test_filled.py::test_filled_random_corner_mask_chunk_threads[3-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_chunk_threads[3-Separate] - Imp... FAILED tests/test_lines.py::test_lines_simple_chunk_threads[3-SeparateCode] FAILED tests/test_lines.py::test_lines_simple_chunk_threads[3-ChunkCombinedCode] FAILED tests/test_lines.py::test_lines_simple_chunk_threads[3-ChunkCombinedOffset] FAILED tests/test_lines.py::test_lines_simple_chunk_threads[3-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_no_corner_mask_chunk_threads[3-Separate] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask_chunk_threads[3-SeparateCode] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask_chunk_threads[3-ChunkCombinedCode] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask_chunk_threads[3-ChunkCombinedOffset] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask_chunk_threads[3-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_corner_mask_chunk_threads[3-Separate] FAILED tests/test_lines.py::test_lines_simple_corner_mask_chunk_threads[3-SeparateCode] FAILED tests/test_lines.py::test_lines_simple_corner_mask_chunk_threads[3-ChunkCombinedCode] FAILED tests/test_lines.py::test_lines_simple_corner_mask_chunk_threads[3-ChunkCombinedOffset] FAILED tests/test_lines.py::test_lines_simple_corner_mask_chunk_threads[3-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_chunk_threads[3-Separate] - Imp... FAILED tests/test_lines.py::test_lines_random_chunk_threads[3-SeparateCode] FAILED tests/test_lines.py::test_lines_random_chunk_threads[3-ChunkCombinedCode] FAILED tests/test_lines.py::test_lines_random_chunk_threads[3-ChunkCombinedOffset] FAILED tests/test_lines.py::test_lines_random_chunk_threads[3-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_no_corner_mask_chunk_threads[3-Separate] FAILED tests/test_lines.py::test_lines_random_no_corner_mask_chunk_threads[3-SeparateCode] FAILED tests/test_lines.py::test_lines_random_no_corner_mask_chunk_threads[3-ChunkCombinedCode] FAILED tests/test_lines.py::test_lines_random_no_corner_mask_chunk_threads[3-ChunkCombinedOffset] FAILED tests/test_lines.py::test_lines_random_no_corner_mask_chunk_threads[3-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_corner_mask_chunk_threads[3-Separate] FAILED tests/test_lines.py::test_lines_random_corner_mask_chunk_threads[3-SeparateCode] FAILED tests/test_lines.py::test_lines_random_corner_mask_chunk_threads[3-ChunkCombinedCode] FAILED tests/test_lines.py::test_lines_random_corner_mask_chunk_threads[3-ChunkCombinedOffset] FAILED tests/test_lines.py::test_lines_random_corner_mask_chunk_threads[3-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... ========== 576 failed, 1820 passed, 117 skipped in 9192.15s (2:33:12) ========== error: Bad exit status from /var/tmp/rpm-tmp.Z8s4Ti (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.Z8s4Ti (%check) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M 8ba40eb6a3ac4d38af2fc4e6df4f0bfa -D /var/lib/mock/f42-build-side-1-3508588-46015/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.fs14q5w8:/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 --noclean --target riscv64 --nodeps /builddir/build/SPECS/python-contourpy.spec\'\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.13/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.13/site-packages/mockbuild/util.py", line 610, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M 8ba40eb6a3ac4d38af2fc4e6df4f0bfa -D /var/lib/mock/f42-build-side-1-3508588-46015/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.fs14q5w8:/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 --noclean --target riscv64 --nodeps /builddir/build/SPECS/python-contourpy.spec'