Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-PyMuPDF.spec'], chrootPath='/var/lib/mock/fedora-rawhide-x86_64-1671216188.975370/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=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.p29f5310:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--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']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.p29f5310:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--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', '55763218e6b7451ba8068f84ee156a8e', '-D', '/var/lib/mock/fedora-rawhide-x86_64-1671216188.975370/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.p29f5310:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--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 --target x86_64 --nodeps /builddir/build/SPECS/python-PyMuPDF.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: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1670889600 Wrote: /builddir/build/SRPMS/python-PyMuPDF-1.21.1-1.fc38.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-PyMuPDF.spec'], chrootPath='/var/lib/mock/fedora-rawhide-x86_64-1671216188.975370/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=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.p29f5310:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--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']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.p29f5310:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--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', '0a3af68d33bf44c5adce294731d3c5c0', '-D', '/var/lib/mock/fedora-rawhide-x86_64-1671216188.975370/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.p29f5310:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--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 -bb --target x86_64 --nodeps /builddir/build/SPECS/python-PyMuPDF.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: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1670889600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.kmV0Fp + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf PyMuPDF-1.21.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/PyMuPDF-1.21.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd PyMuPDF-1.21.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-fix-FTBFS-against-system-mupdf.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + sed -ie '/or '\''install'\'' in sys.argv/d' setup.py + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.sRq7pz + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd PyMuPDF-1.21.1 + export PYMUPDF_SETUP_MUPDF_BUILD= + PYMUPDF_SETUP_MUPDF_BUILD= + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP' PyMuPDF-1.21.1/setup.py: sys.argv: ['setup.py', 'build', '--executable=/usr/bin/python3 -sP'] PyMuPDF-1.21.1/setup.py: os.getcwd(): /builddir/build/BUILD/PyMuPDF-1.21.1 PyMuPDF-1.21.1/setup.py: __file__: /builddir/build/BUILD/PyMuPDF-1.21.1/setup.py PyMuPDF-1.21.1/setup.py: $PYTHON_ARCH: None PyMuPDF-1.21.1/setup.py: os.environ (49): PyMuPDF-1.21.1/setup.py: CFLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection PyMuPDF-1.21.1/setup.py: LDFLAGS: -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes PyMuPDF-1.21.1/setup.py: SHELL: /bin/bash PyMuPDF-1.21.1/setup.py: RPM_SOURCE_DIR: /builddir/build/SOURCES PyMuPDF-1.21.1/setup.py: HISTCONTROL: ignoredups PyMuPDF-1.21.1/setup.py: PKG_CONFIG_PATH: :/usr/lib64/pkgconfig:/usr/share/pkgconfig PyMuPDF-1.21.1/setup.py: HOSTNAME: 0a3af68d33bf44c5adce294731d3c5c0 PyMuPDF-1.21.1/setup.py: HISTSIZE: 1000 PyMuPDF-1.21.1/setup.py: container_host_version_id: 37 PyMuPDF-1.21.1/setup.py: FFLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules PyMuPDF-1.21.1/setup.py: PWD: /builddir/build/BUILD/PyMuPDF-1.21.1 PyMuPDF-1.21.1/setup.py: SOURCE_DATE_EPOCH: 1670889600 PyMuPDF-1.21.1/setup.py: LOGNAME: mockbuild PyMuPDF-1.21.1/setup.py: CXX: g++ PyMuPDF-1.21.1/setup.py: CXXFLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection PyMuPDF-1.21.1/setup.py: RPM_ARCH: x86_64 PyMuPDF-1.21.1/setup.py: container: systemd-nspawn PyMuPDF-1.21.1/setup.py: HOME: /builddir PyMuPDF-1.21.1/setup.py: LANG: C PyMuPDF-1.21.1/setup.py: RPM_LD_FLAGS: -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes PyMuPDF-1.21.1/setup.py: PROMPT_COMMAND: printf "\033]0;\007" PyMuPDF-1.21.1/setup.py: PYMUPDF_SETUP_MUPDF_BUILD: PyMuPDF-1.21.1/setup.py: RPM_PACKAGE_RELEASE: 1.fc38 PyMuPDF-1.21.1/setup.py: RPM_OS: linux PyMuPDF-1.21.1/setup.py: LT_SYS_LIBRARY_PATH: /usr/lib64: PyMuPDF-1.21.1/setup.py: FCFLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules PyMuPDF-1.21.1/setup.py: TERM: vt100 PyMuPDF-1.21.1/setup.py: USER: mockbuild PyMuPDF-1.21.1/setup.py: NOTIFY_SOCKET: /run/host/notify PyMuPDF-1.21.1/setup.py: SHLVL: 1 PyMuPDF-1.21.1/setup.py: RPM_BUILD_DIR: /builddir/build/BUILD PyMuPDF-1.21.1/setup.py: container_host_id: fedora PyMuPDF-1.21.1/setup.py: RPM_OPT_FLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection PyMuPDF-1.21.1/setup.py: VALAFLAGS: -g PyMuPDF-1.21.1/setup.py: RPM_DOC_DIR: /usr/share/doc PyMuPDF-1.21.1/setup.py: RPM_PACKAGE_VERSION: 1.21.1 PyMuPDF-1.21.1/setup.py: DEBUGINFOD_URLS: https://debuginfod.fedoraproject.org/ PyMuPDF-1.21.1/setup.py: container_host_variant_id: cloud PyMuPDF-1.21.1/setup.py: CONFIG_SITE: NONE PyMuPDF-1.21.1/setup.py: PATH: /builddir/.local/bin:/builddir/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin PyMuPDF-1.21.1/setup.py: CC: gcc PyMuPDF-1.21.1/setup.py: MAIL: /var/spool/mail/mockbuild PyMuPDF-1.21.1/setup.py: RPM_BUILD_NCPUS: 2 PyMuPDF-1.21.1/setup.py: container_uuid: 8d4a2f88-ced2-4e4f-b3c6-b16068425b87 PyMuPDF-1.21.1/setup.py: RPM_PACKAGE_NAME: python-PyMuPDF PyMuPDF-1.21.1/setup.py: RPM_BUILD_ROOT: /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64 PyMuPDF-1.21.1/setup.py: OLDPWD: /builddir/build/BUILD PyMuPDF-1.21.1/setup.py: _: /usr/bin/python3 PyMuPDF-1.21.1/setup.py: LC_CTYPE: C.UTF-8 PyMuPDF-1.21.1/setup.py: platform.system()='Linux' PyMuPDF-1.21.1/setup.py: sys.platform='linux' PyMuPDF-1.21.1/setup.py: PYMUPDF_SETUP_MUPDF_BUILD="", using system mupdf PyMuPDF-1.21.1/setup.py: mupdf_local=None PyMuPDF-1.21.1/setup.py: Using system mupdf. PyMuPDF-1.21.1/setup.py: include_dirs=['/usr/include/mupdf', '/usr/local/include/mupdf', '/usr/include/freetype2'] PyMuPDF-1.21.1/setup.py: library_dirs=[] PyMuPDF-1.21.1/setup.py: libraries=['mupdf', 'mupdf-third', 'jbig2dec', 'openjp2', 'jpeg', 'freetype', 'gumbo', 'harfbuzz', 'leptonica', 'tesseract'] PyMuPDF-1.21.1/setup.py: extra_compile_args=['-Wno-incompatible-pointer-types', '-Wno-pointer-sign', '-Wno-sign-compare'] PyMuPDF-1.21.1/setup.py: extra_link_args=[] running build running build_py running build_ext building 'fitz._fitz' extension swigging fitz/fitz.i to fitz/fitz_wrap.c swig -python -w509 -o fitz/fitz_wrap.c fitz/fitz.i creating build creating build/temp.linux-x86_64-cpython-311 creating build/temp.linux-x86_64-cpython-311/fitz gcc -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -I/usr/include/mupdf -I/usr/local/include/mupdf -I/usr/include/freetype2 -I/usr/include/python3.11 -c fitz/fitz_wrap.c -o build/temp.linux-x86_64-cpython-311/fitz/fitz_wrap.o -Wno-incompatible-pointer-types -Wno-pointer-sign -Wno-sign-compare creating build/lib.linux-x86_64-cpython-311 creating build/lib.linux-x86_64-cpython-311/fitz g++ -shared -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -Wl,--build-id=sha1 -g -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -Wl,--build-id=sha1 -g -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection build/temp.linux-x86_64-cpython-311/fitz/fitz_wrap.o -L/usr/lib64 -lmupdf -lmupdf-third -ljbig2dec -lopenjp2 -ljpeg -lfreetype -lgumbo -lharfbuzz -lleptonica -ltesseract -o build/lib.linux-x86_64-cpython-311/fitz/_fitz.cpython-311-x86_64-linux-gnu.so copying fitz/__init__.py -> build/lib.linux-x86_64-cpython-311/fitz copying fitz/fitz.py -> build/lib.linux-x86_64-cpython-311/fitz copying fitz/utils.py -> build/lib.linux-x86_64-cpython-311/fitz copying fitz/__main__.py -> build/lib.linux-x86_64-cpython-311/fitz + sphinx-build docs docs_built Running Sphinx v5.3.0 making output directory... done building [mo]: targets for 0 po files that are out of date building [html]: targets for 61 source files that are out of date updating environment: [new config] 61 added, 0 changed, 0 removed reading sources... [ 1%] algebra reading sources... [ 3%] annot reading sources... [ 4%] app1 reading sources... [ 6%] app2 reading sources... [ 8%] app3 reading sources... [ 9%] archive-class reading sources... [ 11%] changes reading sources... [ 13%] classes reading sources... [ 14%] colors reading sources... [ 16%] colorspace reading sources... [ 18%] coop_low reading sources... [ 19%] deprecated reading sources... [ 21%] device reading sources... [ 22%] displaylist reading sources... [ 24%] document reading sources... [ 26%] document-writer-class reading sources... [ 27%] faq reading sources... [ 29%] font reading sources... [ 31%] footer reading sources... [ 32%] functions reading sources... [ 34%] glossary reading sources... [ 36%] header reading sources... [ 37%] identity reading sources... [ 39%] index reading sources... [ 40%] installation reading sources... [ 42%] intro reading sources... [ 44%] irect reading sources... [ 45%] link reading sources... [ 47%] linkdest reading sources... [ 49%] lowlevel reading sources... [ 50%] matrix reading sources... [ 52%] module reading sources... [ 54%] outline reading sources... [ 55%] page reading sources... [ 57%] pixmap reading sources... [ 59%] point reading sources... [ 60%] quad reading sources... [ 62%] recipes reading sources... [ 63%] recipes-annotations reading sources... [ 65%] recipes-common-issues-and-their-solutions reading sources... [ 67%] recipes-drawing-and-graphics reading sources... [ 68%] recipes-general reading sources... [ 70%] recipes-images reading sources... [ 72%] recipes-journalling reading sources... [ 73%] recipes-low-level-interfaces reading sources... [ 75%] recipes-multiprocessing reading sources... [ 77%] recipes-stories reading sources... [ 78%] recipes-text reading sources... [ 80%] rect reading sources... [ 81%] shape reading sources... [ 83%] story-class reading sources... [ 85%] textpage reading sources... [ 86%] textwriter reading sources... [ 88%] toc reading sources... [ 90%] tools reading sources... [ 91%] tutorial reading sources... [ 93%] vars reading sources... [ 95%] version reading sources... [ 96%] widget reading sources... [ 98%] xml-class reading sources... [100%] znames /builddir/build/BUILD/PyMuPDF-1.21.1/docs/changes.rst:4: WARNING: Duplicate explicit target name: "#1417". /builddir/build/BUILD/PyMuPDF-1.21.1/docs/device.rst:25: WARNING: duplicate object description of Device.__init__, other instance in device, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/document.rst:7: WARNING: Duplicate explicit target name: "here". /builddir/build/BUILD/PyMuPDF-1.21.1/docs/font.rst:7: WARNING: Duplicate explicit target name: "here". /builddir/build/BUILD/PyMuPDF-1.21.1/docs/font.rst:42: WARNING: invalid pair index entry 'Font, fontfile' /builddir/build/BUILD/PyMuPDF-1.21.1/docs/font.rst:131: WARNING: invalid pair index entry 'Font.has_glyph, language' /builddir/build/BUILD/PyMuPDF-1.21.1/docs/font.rst:182: WARNING: invalid pair index entry 'Font.glyph_advance, language' /builddir/build/BUILD/PyMuPDF-1.21.1/docs/font.rst:210: WARNING: invalid pair index entry 'Font.glyph_bbox, language' /builddir/build/BUILD/PyMuPDF-1.21.1/docs/font.rst:233: WARNING: invalid pair index entry 'text_length, fontsize' /builddir/build/BUILD/PyMuPDF-1.21.1/docs/font.rst:257: WARNING: invalid pair index entry 'char_lengths, fontsize' /builddir/build/BUILD/PyMuPDF-1.21.1/docs/functions.rst:737: WARNING: duplicate object description of recover_quad, other instance in functions, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/irect.rst:44: WARNING: duplicate object description of IRect.__init__, other instance in irect, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/irect.rst:46: WARNING: duplicate object description of IRect.__init__, other instance in irect, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/irect.rst:48: WARNING: duplicate object description of IRect.__init__, other instance in irect, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/matrix.rst:47: WARNING: duplicate object description of Matrix.__init__, other instance in matrix, use :noindex: for one of them looking for now-outdated files... none found pickling environment... /builddir/build/BUILD/PyMuPDF-1.21.1/docs/matrix.rst:49: WARNING: duplicate object description of Matrix.__init__, other instance in matrix, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/matrix.rst:51: WARNING: duplicate object description of Matrix.__init__, other instance in matrix, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/matrix.rst:53: WARNING: duplicate object description of Matrix.__init__, other instance in matrix, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/matrix.rst:55: WARNING: duplicate object description of Matrix.__init__, other instance in matrix, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/matrix.rst:57: WARNING: duplicate object description of Matrix.__init__, other instance in matrix, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/page.rst:7: WARNING: Duplicate explicit target name: "this". /builddir/build/BUILD/PyMuPDF-1.21.1/docs/pixmap.rst:85: WARNING: duplicate object description of Pixmap.__init__, other instance in pixmap, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/pixmap.rst:95: WARNING: duplicate object description of Pixmap.__init__, other instance in pixmap, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/pixmap.rst:107: WARNING: duplicate object description of Pixmap.__init__, other instance in pixmap, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/pixmap.rst:122: WARNING: duplicate object description of Pixmap.__init__, other instance in pixmap, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/pixmap.rst:139: WARNING: duplicate object description of Pixmap.__init__, other instance in pixmap, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/pixmap.rst:145: WARNING: duplicate object description of Pixmap.__init__, other instance in pixmap, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/pixmap.rst:154: WARNING: duplicate object description of Pixmap.__init__, other instance in pixmap, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/pixmap.rst:177: WARNING: duplicate object description of Pixmap.__init__, other instance in pixmap, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/point.rst:29: WARNING: duplicate object description of Point.__init__, other instance in point, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/point.rst:31: WARNING: duplicate object description of Point.__init__, other instance in point, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/point.rst:33: WARNING: duplicate object description of Point.__init__, other instance in point, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/quad.rst:45: WARNING: duplicate object description of Quad.__init__, other instance in quad, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/quad.rst:47: WARNING: duplicate object description of Quad.__init__, other instance in quad, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/quad.rst:49: WARNING: duplicate object description of Quad.__init__, other instance in quad, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/recipes-general.rst:7: WARNING: Duplicate explicit target name: "article". /builddir/build/BUILD/PyMuPDF-1.21.1/docs/recipes-images.rst:7: WARNING: Duplicate explicit target name: "here". /builddir/build/BUILD/PyMuPDF-1.21.1/docs/recipes-images.rst:7: WARNING: Duplicate explicit target name: "here". /builddir/build/BUILD/PyMuPDF-1.21.1/docs/rect.rst:90: WARNING: duplicate object description of Rect.__init__, other instance in rect, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/rect.rst:92: WARNING: duplicate object description of Rect.__init__, other instance in rect, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/rect.rst:94: WARNING: duplicate object description of Rect.__init__, other instance in rect, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/rect.rst:96: WARNING: duplicate object description of Rect.__init__, other instance in rect, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/rect.rst:98: WARNING: duplicate object description of Rect.__init__, other instance in rect, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/rect.rst:100: WARNING: duplicate object description of Rect.__init__, other instance in rect, use :noindex: for one of them /builddir/build/BUILD/PyMuPDF-1.21.1/docs/story-class.rst:154: ERROR: Unexpected indentation. /builddir/build/BUILD/PyMuPDF-1.21.1/docs/story-class.rst:162: ERROR: Unexpected indentation. /builddir/build/BUILD/PyMuPDF-1.21.1/docs/story-class.rst:11: WARNING: Block quote ends without a blank line; unexpected unindent. /builddir/build/BUILD/PyMuPDF-1.21.1/docs/story-class.rst:196: ERROR: Unexpected indentation. /builddir/build/BUILD/PyMuPDF-1.21.1/docs/story-class.rst:36: WARNING: Field list ends without a blank line; unexpected unindent. /builddir/build/BUILD/PyMuPDF-1.21.1/docs/story-class.rst:273: WARNING: Inline literal start-string without end-string. done checking consistency... done preparing documents... /builddir/build/BUILD/PyMuPDF-1.21.1/docs/faq.rst: WARNING: document isn't included in any toctree /builddir/build/BUILD/PyMuPDF-1.21.1/docs/index.rst: WARNING: document isn't included in any toctree done writing output... [ 1%] algebra writing output... [ 3%] annot writing output... [ 4%] app1 writing output... [ 6%] app2 writing output... [ 8%] app3 writing output... [ 9%] archive-class writing output... [ 11%] changes writing output... [ 13%] classes writing output... [ 14%] colors writing output... [ 16%] colorspace writing output... [ 18%] coop_low writing output... [ 19%] deprecated writing output... [ 21%] device writing output... [ 22%] displaylist writing output... [ 24%] document writing output... [ 26%] document-writer-class writing output... [ 27%] faq writing output... [ 29%] font writing output... [ 31%] footer writing output... [ 32%] functions writing output... [ 34%] glossary writing output... [ 36%] header writing output... [ 37%] identity writing output... [ 39%] index writing output... [ 40%] installation writing output... [ 42%] intro writing output... [ 44%] irect writing output... [ 45%] link writing output... [ 47%] linkdest writing output... [ 49%] lowlevel writing output... [ 50%] matrix writing output... [ 52%] module writing output... [ 54%] outline writing output... [ 55%] page writing output... [ 57%] pixmap writing output... [ 59%] point writing output... [ 60%] quad writing output... [ 62%] recipes writing output... [ 63%] recipes-annotations writing output... [ 65%] recipes-common-issues-and-their-solutions writing output... [ 67%] recipes-drawing-and-graphics writing output... [ 68%] recipes-general writing output... [ 70%] recipes-images writing output... [ 72%] recipes-journalling writing output... [ 73%] recipes-low-level-interfaces writing output... [ 75%] recipes-multiprocessing writing output... [ 77%] recipes-stories writing output... [ 78%] recipes-text writing output... [ 80%] rect writing output... [ 81%] shape writing output... [ 83%] story-class writing output... [ 85%] textpage writing output... [ 86%] textwriter writing output... [ 88%] toc writing output... [ 90%] tools writing output... [ 91%] tutorial writing output... [ 93%] vars writing output... [ 95%] version writing output... [ 96%] widget writing output... [ 98%] xml-class writing output... [100%] znames generating indices... /builddir/build/BUILD/PyMuPDF-1.21.1/docs/document.rst:1638: WARNING: Could not lex literal_block as "python". Highlighting skipped. /builddir/build/BUILD/PyMuPDF-1.21.1/docs/document.rst:1650: WARNING: Could not lex literal_block as "python". Highlighting skipped. /builddir/build/BUILD/PyMuPDF-1.21.1/docs/recipes-general.rst:38: WARNING: undefined label: 'appendix 3' /builddir/build/BUILD/PyMuPDF-1.21.1/docs/recipes-stories.rst:433: WARNING: undefined label: 'elementposition' /builddir/build/BUILD/PyMuPDF-1.21.1/internal padding before docs/header.rst:: WARNING: undefined label: 'elementpostion' /builddir/build/BUILD/PyMuPDF-1.21.1/docs/tutorial.rst:345: WARNING: undefined label: 'appendix 3' /builddir/build/BUILD/PyMuPDF-1.21.1/docs/xml-class.rst:64: WARNING: more than one target found for cross-reference 'next': Annot.next, Link.next, Outline.next, Widget.next, Xml.next genindex done writing additional pages... search done copying images... [ 1%] images/discord-mark-blue.svg copying images... [ 2%] images/img-opacity.jpg copying images... [ 3%] images/mupdf-icons.jpg copying images... [ 5%] images/img-circle.png copying images... [ 6%] images/img-colordb.png copying images... [ 7%] images/img-make-table.jpg copying images... [ 9%] images/img-planish.png copying images... [ 10%] images/pymupdf-logo.png copying images... [ 11%] images/img-matrix.png copying images... [ 12%] images/img-original.png copying images... [ 14%] images/img-e-is-100.png copying images... [ 15%] images/img-f-is-100.png copying images... [ 16%] images/img-a-is--1.png copying images... [ 18%] images/img-d-is--1.png copying images... [ 19%] images/img-b-is-0.5.png copying images... [ 20%] images/img-c-is-0.5.png copying images... [ 22%] images/img-rot-60.png copying images... [ 23%] images/img-layout-text.jpg copying images... [ 24%] images/img-caret-annot.jpg copying images... [ 25%] images/img-redact.jpg copying images... [ 27%] images/img-polyline.png copying images... [ 28%] images/img-markers.jpg copying images... [ 29%] images/img-stampannot.jpg copying images... [ 31%] images/img-alpha-1.png copying images... [ 32%] images/img-alpha-0.png copying images... [ 33%] images/img-showpdfpage.jpg copying images... [ 35%] images/img-pixmapcopy.jpg copying images... [ 36%] images/img-warp.png copying images... [ 37%] images/img-point-unit.jpg copying images... [ 38%] images/img-quads.jpg copying images... [ 40%] images/img-convexity.png copying images... [ 41%] images/img-annots.jpg copying images... [ 42%] images/img-freetext.jpg copying images... [ 44%] images/img-inkannot.jpg copying images... [ 45%] images/img-symbols.jpg copying images... [ 46%] images/img-getdrawings.png copying images... [ 48%] images/img-pdfjoiner.jpg copying images... [ 49%] images/img-posterize.png copying images... [ 50%] images/img-4up.png copying images... [ 51%] images/img-encrypting.jpg copying images... [ 53%] images/img-clip.jpg copying images... [ 54%] images/img-extract-imga.jpg copying images... [ 55%] images/img-extract-imgb.jpg copying images... [ 57%] images/img-stencil.jpg copying images... [ 58%] images/img-import-progress.jpg copying images... [ 59%] images/img-embed-progress.jpg copying images... [ 61%] images/img-attach-result.jpg copying images... [ 62%] images/img-7edges.png copying images... [ 63%] images/img-target.png copying images... [ 64%] images/img-sierpinski.png copying images... [ 66%] images/img-markedpdf.jpg copying images... [ 67%] images/img-textmarker.jpg copying images... [ 68%] images/img-linequad.jpg copying images... [ 70%] images/img-pdftext.jpg copying images... [ 71%] images/img-inserttext.jpg copying images... [ 72%] images/img-textbox.jpg copying images... [ 74%] images/img-encoding.jpg copying images... [ 75%] images/img-rect-contains.png copying images... [ 76%] images/img-breadth.png copying images... [ 77%] images/img-squiggly.png copying images... [ 79%] images/img-drawBezier.png copying images... [ 80%] images/img-drawquad.jpg copying images... [ 81%] images/img-drawcircle.jpg copying images... [ 83%] images/img-drawCurve.png copying images... [ 84%] images/img-drawSector1.png copying images... [ 85%] images/img-drawSector2.png copying images... [ 87%] images/img-even-odd.png copying images... [ 88%] images/img-rotate.png copying images... [ 89%] images/img-rot+morph.png copying images... [ 90%] images/img-cake.png copying images... [ 92%] images/img-rendermode.jpg copying images... [ 93%] images/img-textpage.png copying images... [ 94%] images/img-line-dir.png copying images... [ 96%] images/img-asc-desc.png copying images... [ 97%] images/img-span-rect.png copying images... [ 98%] images/img-textpage-char.png copying images... [100%] images/img-smallcaps.jpg copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded, 59 warnings. The HTML pages are in docs_built. + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Asrhr7 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64 ++ dirname /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd PyMuPDF-1.21.1 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64 --prefix /usr PyMuPDF-1.21.1/setup.py: sys.argv: ['setup.py', 'install', '-O1', '--skip-build', '--root', '/builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64', '--prefix', '/usr'] PyMuPDF-1.21.1/setup.py: os.getcwd(): /builddir/build/BUILD/PyMuPDF-1.21.1 PyMuPDF-1.21.1/setup.py: __file__: /builddir/build/BUILD/PyMuPDF-1.21.1/setup.py PyMuPDF-1.21.1/setup.py: $PYTHON_ARCH: None PyMuPDF-1.21.1/setup.py: os.environ (48): PyMuPDF-1.21.1/setup.py: CFLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection PyMuPDF-1.21.1/setup.py: LDFLAGS: -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes PyMuPDF-1.21.1/setup.py: SHELL: /bin/bash PyMuPDF-1.21.1/setup.py: RPM_SOURCE_DIR: /builddir/build/SOURCES PyMuPDF-1.21.1/setup.py: HISTCONTROL: ignoredups PyMuPDF-1.21.1/setup.py: PKG_CONFIG_PATH: :/usr/lib64/pkgconfig:/usr/share/pkgconfig PyMuPDF-1.21.1/setup.py: HOSTNAME: 0a3af68d33bf44c5adce294731d3c5c0 PyMuPDF-1.21.1/setup.py: HISTSIZE: 1000 PyMuPDF-1.21.1/setup.py: container_host_version_id: 37 PyMuPDF-1.21.1/setup.py: FFLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules PyMuPDF-1.21.1/setup.py: PWD: /builddir/build/BUILD/PyMuPDF-1.21.1 PyMuPDF-1.21.1/setup.py: SOURCE_DATE_EPOCH: 1670889600 PyMuPDF-1.21.1/setup.py: LOGNAME: mockbuild PyMuPDF-1.21.1/setup.py: CXX: g++ PyMuPDF-1.21.1/setup.py: CXXFLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection PyMuPDF-1.21.1/setup.py: RPM_ARCH: x86_64 PyMuPDF-1.21.1/setup.py: container: systemd-nspawn PyMuPDF-1.21.1/setup.py: HOME: /builddir PyMuPDF-1.21.1/setup.py: LANG: C PyMuPDF-1.21.1/setup.py: RPM_LD_FLAGS: -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes PyMuPDF-1.21.1/setup.py: PROMPT_COMMAND: printf "\033]0;\007" PyMuPDF-1.21.1/setup.py: RPM_PACKAGE_RELEASE: 1.fc38 PyMuPDF-1.21.1/setup.py: RPM_OS: linux PyMuPDF-1.21.1/setup.py: LT_SYS_LIBRARY_PATH: /usr/lib64: PyMuPDF-1.21.1/setup.py: FCFLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules PyMuPDF-1.21.1/setup.py: TERM: vt100 PyMuPDF-1.21.1/setup.py: USER: mockbuild PyMuPDF-1.21.1/setup.py: NOTIFY_SOCKET: /run/host/notify PyMuPDF-1.21.1/setup.py: SHLVL: 1 PyMuPDF-1.21.1/setup.py: RPM_BUILD_DIR: /builddir/build/BUILD PyMuPDF-1.21.1/setup.py: container_host_id: fedora PyMuPDF-1.21.1/setup.py: RPM_OPT_FLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection PyMuPDF-1.21.1/setup.py: VALAFLAGS: -g PyMuPDF-1.21.1/setup.py: RPM_DOC_DIR: /usr/share/doc PyMuPDF-1.21.1/setup.py: RPM_PACKAGE_VERSION: 1.21.1 PyMuPDF-1.21.1/setup.py: DEBUGINFOD_URLS: https://debuginfod.fedoraproject.org/ PyMuPDF-1.21.1/setup.py: container_host_variant_id: cloud PyMuPDF-1.21.1/setup.py: CONFIG_SITE: NONE PyMuPDF-1.21.1/setup.py: PATH: /builddir/.local/bin:/builddir/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin PyMuPDF-1.21.1/setup.py: CC: gcc PyMuPDF-1.21.1/setup.py: MAIL: /var/spool/mail/mockbuild PyMuPDF-1.21.1/setup.py: RPM_BUILD_NCPUS: 2 PyMuPDF-1.21.1/setup.py: container_uuid: 8d4a2f88-ced2-4e4f-b3c6-b16068425b87 PyMuPDF-1.21.1/setup.py: RPM_PACKAGE_NAME: python-PyMuPDF PyMuPDF-1.21.1/setup.py: RPM_BUILD_ROOT: /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64 PyMuPDF-1.21.1/setup.py: OLDPWD: /builddir/build/BUILD PyMuPDF-1.21.1/setup.py: _: /usr/bin/python3 PyMuPDF-1.21.1/setup.py: LC_CTYPE: C.UTF-8 PyMuPDF-1.21.1/setup.py: platform.system()='Linux' PyMuPDF-1.21.1/setup.py: sys.platform='linux' PyMuPDF-1.21.1/setup.py: include_dirs=[] PyMuPDF-1.21.1/setup.py: library_dirs=[] PyMuPDF-1.21.1/setup.py: libraries=[] PyMuPDF-1.21.1/setup.py: extra_compile_args=[] PyMuPDF-1.21.1/setup.py: extra_link_args=[] running install /usr/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running install_lib creating /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr creating /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64 creating /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11 creating /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages creating /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz copying build/lib.linux-x86_64-cpython-311/fitz/__main__.py -> /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz copying build/lib.linux-x86_64-cpython-311/fitz/utils.py -> /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz copying build/lib.linux-x86_64-cpython-311/fitz/fitz.py -> /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz copying build/lib.linux-x86_64-cpython-311/fitz/__init__.py -> /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz copying build/lib.linux-x86_64-cpython-311/fitz/_fitz.cpython-311-x86_64-linux-gnu.so -> /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz byte-compiling /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/__main__.py to __main__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py to utils.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py to fitz.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/__init__.py to __init__.cpython-311.pyc writing byte-compilation script '/tmp/tmpj59di_jp.py' /usr/bin/python3 /tmp/tmpj59di_jp.py removing /tmp/tmpj59di_jp.py running install_egg_info running egg_info creating PyMuPDF.egg-info writing PyMuPDF.egg-info/PKG-INFO writing dependency_links to PyMuPDF.egg-info/dependency_links.txt writing top-level names to PyMuPDF.egg-info/top_level.txt writing manifest file 'PyMuPDF.egg-info/SOURCES.txt' reading manifest file 'PyMuPDF.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'mupdf.tgz' warning: no previously-included files matching '__pycache__/*' found anywhere in distribution adding license file 'COPYING' writing manifest file 'PyMuPDF.egg-info/SOURCES.txt' Copying PyMuPDF.egg-info to /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/PyMuPDF-1.21.1-py3.11.egg-info running install_scripts + rm -rfv /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/bin/__pycache__ + rm -f /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/README.md + /usr/bin/find-debuginfo -j2 --strict-build-id -m -i --build-id-seed 1.21.1-1.fc38 --unique-debug-suffix -1.21.1-1.fc38.x86_64 --unique-debug-src-base python-PyMuPDF-1.21.1-1.fc38.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/PyMuPDF-1.21.1 extracting debug info from /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/_fitz.cpython-311-x86_64-linux-gnu.so original debug info size: 3680kB, size after compression: 3612kB /usr/bin/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 2391 blocks + /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 + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 Bytecompiling .py files below /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib/debug/usr/lib64/python3.11 using python3.11 Bytecompiling .py files below /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11 using python3.11 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.i7il58 + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd PyMuPDF-1.21.1 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes' + PATH=/builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/bin:/builddir/.local/bin:/builddir/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PYTHONPATH=/builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages:/builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib/python3.11/site-packages + PYTHONDONTWRITEBYTECODE=1 + PYTEST_XDIST_AUTO_NUM_WORKERS=2 + /usr/bin/pytest ============================= test session starts ============================== platform linux -- Python 3.11.1, pytest-7.2.0, pluggy-1.0.0 rootdir: /builddir/build/BUILD/PyMuPDF-1.21.1, configfile: pytest.ini collected 109 items tests/test_annots.py .......FFFFFFFFFF [ 15%] tests/test_badfonts.py . [ 16%] tests/test_crypting.py F [ 17%] tests/test_docs_samples.py F.FFFFFFFFFF [ 28%] tests/test_drawings.py FFF [ 31%] tests/test_embeddedfiles.py . [ 32%] tests/test_extractimage.py . [ 33%] tests/test_font.py .. [ 34%] tests/test_general.py FFFFFFFF......FF [ 49%] tests/test_geometry.py .......F [ 56%] tests/test_imagebbox.py FF [ 58%] tests/test_insertimage.py F [ 59%] tests/test_insertpdf.py FF [ 61%] tests/test_linequad.py F [ 62%] tests/test_metadata.py .. [ 64%] tests/test_nonpdf.py ..F [ 66%] tests/test_object_manipulation.py FFF [ 69%] tests/test_optional_content.py .F [ 71%] tests/test_pagedelete.py F [ 72%] tests/test_pagelabels.py F [ 73%] tests/test_pixmap.py FFF.F.F.. [ 81%] tests/test_showpdfpage.py F [ 82%] tests/test_textbox.py FFFFF [ 87%] tests/test_textextract.py F [ 88%] tests/test_textsearch.py FF [ 89%] tests/test_toc.py FF..F. [ 95%] tests/test_widgets.py FFFFF [100%] =================================== FAILURES =================================== ________________________________ test_polyline _________________________________ def test_polyline(): doc = fitz.open() page = doc.new_page() rect = page.rect + (100, 36, -100, -36) cell = fitz.make_table(rect, rows=10) for i in range(10): annot = page.add_polyline_annot((cell[i][0].bl, cell[i][0].br)) annot.set_line_ends(i, i) annot.update() > for i, annot in enumerate(page.annots()): tests/test_annots.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:6697: in annots annot = self.load_annot(xref) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = page 0 of , ident = 17 def load_annot(self, ident: typing.Union[str, int]) -> "struct Annot *": """Load an annot by name (/NM key) or xref. Args: ident: identifier, either name (str) or xref (int). """ CheckParent(self) if type(ident) is str: xref = 0 name = ident elif type(ident) is int: xref = ident name = None else: raise ValueError("identifier must be string or integer") val = self._load_annot(name, xref) if not val: return val > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:6149: AttributeError _________________________________ test_polygon _________________________________ def test_polygon(): doc = fitz.open() > page = doc.new_page() tests/test_annots.py:100: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError __________________________________ test_line ___________________________________ def test_line(): doc = fitz.open() > page = doc.new_page() tests/test_annots.py:107: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError _________________________________ test_square __________________________________ def test_square(): doc = fitz.open() > page = doc.new_page() tests/test_annots.py:121: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError _________________________________ test_circle __________________________________ def test_circle(): doc = fitz.open() > page = doc.new_page() tests/test_annots.py:128: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError _____________________________ test_fileattachment ______________________________ def test_fileattachment(): doc = fitz.open() > page = doc.new_page() tests/test_annots.py:135: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError __________________________________ test_stamp __________________________________ def test_stamp(): doc = fitz.open() > page = doc.new_page() tests/test_annots.py:142: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError _________________________________ test_redact __________________________________ def test_redact(): doc = fitz.open() > page = doc.new_page() tests/test_annots.py:154: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError __________________________________ test_1645 ___________________________________ def test_1645(): ''' Test fix for #1645. ''' path_in = os.path.abspath( f'{__file__}/../resources/symbol-list.pdf') path_expected = os.path.abspath( f'{__file__}/../resources/test_1645_expected.pdf') path_out = os.path.abspath( f'{__file__}/../test_1645_out.pdf') doc = fitz.open(path_in) > page = doc[0] tests/test_annots.py:179: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document('/builddir/build/BUILD/PyMuPDF-1.21.1/tests/resources/symbol-list.pdf') page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError __________________________________ test_1824 ___________________________________ def test_1824(): ''' Test for fix for #1824: SegFault when applying redactions overlapping a transparent image. ''' path = os.path.abspath( f'{__file__}/../resources/test_1824.pdf') doc=fitz.open(path) > page=doc[0] tests/test_annots.py:199: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document('/builddir/build/BUILD/PyMuPDF-1.21.1/tests/resources/test_1824.pdf') page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError _______________________________ test_encryption ________________________________ def test_encryption(): text = "some secret information" # keep this data secret perm = int( fitz.PDF_PERM_ACCESSIBILITY # always use this | fitz.PDF_PERM_PRINT # permit printing | fitz.PDF_PERM_COPY # permit copying | fitz.PDF_PERM_ANNOTATE # permit annotations ) owner_pass = "owner" # owner password user_pass = "user" # user password encrypt_meth = fitz.PDF_ENCRYPT_AES_256 # strongest algorithm doc = fitz.open() # empty pdf > page = doc.new_page() # empty page tests/test_crypting.py:21: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError _ test_docs_samples[/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/table01.py] _ sample = '/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/table01.py' @pytest.mark.parametrize('sample', samples) def test_docs_samples(sample): > runpy.run_path(sample) tests/test_docs_samples.py:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ :291: in run_path ??? :98: in _run_module_code ??? :88: in _run_code ??? docs/samples/table01.py:45: in body = story.body _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = > @property def body(self): dom = self.document() > return dom.bodytag() E AttributeError: 'SwigPyObject' object has no attribute 'bodytag' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:10011: AttributeError _ test_docs_samples[/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/story-write-stabilized.py] _ sample = '/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/story-write-stabilized.py' @pytest.mark.parametrize('sample', samples) def test_docs_samples(sample): > runpy.run_path(sample) tests/test_docs_samples.py:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ :291: in run_path ??? :98: in _run_module_code ??? :88: in _run_code ??? docs/samples/story-write-stabilized.py:87: in fitz.Story.write_stabilized(writer, contentfn, rectfn) ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:9869: in write_stabilized story.add_header_ids() ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:9891: in add_header_ids dom = self.body _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = > @property def body(self): dom = self.document() > return dom.bodytag() E AttributeError: 'SwigPyObject' object has no attribute 'bodytag' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:10011: AttributeError _ test_docs_samples[/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/story-write-stabilized-links.py] _ sample = '/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/story-write-stabilized-links.py' @pytest.mark.parametrize('sample', samples) def test_docs_samples(sample): > runpy.run_path(sample) tests/test_docs_samples.py:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ :291: in run_path ??? :98: in _run_module_code ??? :88: in _run_code ??? docs/samples/story-write-stabilized-links.py:88: in document = fitz.Story.write_stabilized_with_links(contentfn, rectfn) ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:9931: in write_stabilized_with_links Story.write_stabilized(writer, contentfn, rectfn, user_css, em, positionfn2, pagefn, archive, add_header_ids) ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:9869: in write_stabilized story.add_header_ids() ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:9891: in add_header_ids dom = self.body _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = > @property def body(self): dom = self.document() > return dom.bodytag() E AttributeError: 'SwigPyObject' object has no attribute 'bodytag' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:10011: AttributeError _ test_docs_samples[/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/simple-grid.py] _ sample = '/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/simple-grid.py' @pytest.mark.parametrize('sample', samples) def test_docs_samples(sample): > runpy.run_path(sample) tests/test_docs_samples.py:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ :291: in run_path ??? :98: in _run_module_code ??? :88: in _run_code ??? docs/samples/simple-grid.py:13: in body = story.body _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = > @property def body(self): dom = self.document() > return dom.bodytag() E AttributeError: 'SwigPyObject' object has no attribute 'bodytag' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:10011: AttributeError _ test_docs_samples[/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/showpdf-page.py] _ sample = '/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/showpdf-page.py' @pytest.mark.parametrize('sample', samples) def test_docs_samples(sample): > runpy.run_path(sample) tests/test_docs_samples.py:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ :291: in run_path ??? :98: in _run_module_code ??? :88: in _run_code ??? docs/samples/showpdf-page.py:65: in page = doc[0] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document('/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/mupdf-title.pdf') page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError _ test_docs_samples[/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/quickfox.py] _ sample = '/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/quickfox.py' @pytest.mark.parametrize('sample', samples) def test_docs_samples(sample): > runpy.run_path(sample) tests/test_docs_samples.py:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ :291: in run_path ??? :98: in _run_module_code ??? :88: in _run_code ??? docs/samples/quickfox.py:46: in body = story.body # access HTML body _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = > @property def body(self): dom = self.document() > return dom.bodytag() E AttributeError: 'SwigPyObject' object has no attribute 'bodytag' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:10011: AttributeError _ test_docs_samples[/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/quickfox-image-no-go.py] _ sample = '/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/quickfox-image-no-go.py' @pytest.mark.parametrize('sample', samples) def test_docs_samples(sample): > runpy.run_path(sample) tests/test_docs_samples.py:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ :291: in run_path ??? :98: in _run_module_code ??? :88: in _run_code ??? docs/samples/quickfox-image-no-go.py:123: in body = story.body # access HTML body _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = > @property def body(self): dom = self.document() > return dom.bodytag() E AttributeError: 'SwigPyObject' object has no attribute 'bodytag' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:10011: AttributeError _ test_docs_samples[/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/new-annots.py] _ sample = '/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/new-annots.py' @pytest.mark.parametrize('sample', samples) def test_docs_samples(sample): > runpy.run_path(sample) tests/test_docs_samples.py:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ :291: in run_path ??? :98: in _run_module_code ??? :88: in _run_code ??? docs/samples/new-annots.py:53: in page = doc.new_page() ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError ----------------------------- Captured stdout call ----------------------------- PyMuPDF 1.21.1: Python bindings for the MuPDF 1.21.1 library. Version date: 2022-12-13 00:00:01. Built for Python 3.11 on linux (64-bit). _ test_docs_samples[/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/json-example.py] _ sample = '/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/json-example.py' @pytest.mark.parametrize('sample', samples) def test_docs_samples(sample): > runpy.run_path(sample) tests/test_docs_samples.py:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ :291: in run_path ??? :98: in _run_module_code ??? :88: in _run_code ??? docs/samples/json-example.py:172: in body = story.body _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = > @property def body(self): dom = self.document() > return dom.bodytag() E AttributeError: 'SwigPyObject' object has no attribute 'bodytag' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:10011: AttributeError _ test_docs_samples[/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/filmfestival-sql.py] _ sample = '/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/filmfestival-sql.py' @pytest.mark.parametrize('sample', samples) def test_docs_samples(sample): > runpy.run_path(sample) tests/test_docs_samples.py:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ :291: in run_path ??? :98: in _run_module_code ??? :88: in _run_code ??? docs/samples/filmfestival-sql.py:77: in body = story.body # access the HTML body detail _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = > @property def body(self): dom = self.document() > return dom.bodytag() E AttributeError: 'SwigPyObject' object has no attribute 'bodytag' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:10011: AttributeError _ test_docs_samples[/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/code-printer.py] _ sample = '/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/code-printer.py' @pytest.mark.parametrize('sample', samples) def test_docs_samples(sample): > runpy.run_path(sample) tests/test_docs_samples.py:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ :291: in run_path ??? :98: in _run_module_code ??? :88: in _run_code ??? docs/samples/code-printer.py:180: in code_printer(fileptr1) # make the PDF docs/samples/code-printer.py:99: in code_printer body = story.body _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = > @property def body(self): dom = self.document() > return dom.bodytag() E AttributeError: 'SwigPyObject' object has no attribute 'bodytag' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:10011: AttributeError ________________________________ test_drawings1 ________________________________ def test_drawings1(): symbols_text = open(symbols).read() # expected result doc = fitz.open(filename) > page = doc[0] tests/test_drawings.py:19: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document('/builddir/build/BUILD/PyMuPDF-1.21.1/tests/resources/symbol-list.pdf') page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError ________________________________ test_drawings2 ________________________________ def test_drawings2(): delta = (0, 20, 0, 20) doc = fitz.open() > page = doc.new_page() tests/test_drawings.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError ________________________________ test_drawings3 ________________________________ def test_drawings3(): doc = fitz.open() > page1 = doc.new_page() tests/test_drawings.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError ________________________________ test_haslinks _________________________________ def test_haslinks(): > doc = fitz.open(filename) tests/test_general.py:17: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:3967: in __init__ self.init_doc() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document('/builddir/build/BUILD/PyMuPDF-1.21.1/tests/resources/001003ED.pdf') def init_doc(self): if self.is_encrypted: raise ValueError("cannot initialize - document still encrypted") self._outline = self._loadOutline() if self._outline: > self._outline.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5136: AttributeError ________________________________ test_hasannots ________________________________ def test_hasannots(): > doc = fitz.open(filename) tests/test_general.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:3967: in __init__ self.init_doc() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document('/builddir/build/BUILD/PyMuPDF-1.21.1/tests/resources/001003ED.pdf') def init_doc(self): if self.is_encrypted: raise ValueError("cannot initialize - document still encrypted") self._outline = self._loadOutline() if self._outline: > self._outline.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5136: AttributeError _______________________________ test_haswidgets ________________________________ def test_haswidgets(): > doc = fitz.open(filename) tests/test_general.py:27: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:3967: in __init__ self.init_doc() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document('/builddir/build/BUILD/PyMuPDF-1.21.1/tests/resources/001003ED.pdf') def init_doc(self): if self.is_encrypted: raise ValueError("cannot initialize - document still encrypted") self._outline = self._loadOutline() if self._outline: > self._outline.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5136: AttributeError _______________________________ test_isrepaired ________________________________ def test_isrepaired(): > doc = fitz.open(filename) tests/test_general.py:32: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:3967: in __init__ self.init_doc() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document('/builddir/build/BUILD/PyMuPDF-1.21.1/tests/resources/001003ED.pdf') def init_doc(self): if self.is_encrypted: raise ValueError("cannot initialize - document still encrypted") self._outline = self._loadOutline() if self._outline: > self._outline.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5136: AttributeError _________________________________ test_isdirty _________________________________ def test_isdirty(): > doc = fitz.open(filename) tests/test_general.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:3967: in __init__ self.init_doc() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document('/builddir/build/BUILD/PyMuPDF-1.21.1/tests/resources/001003ED.pdf') def init_doc(self): if self.is_encrypted: raise ValueError("cannot initialize - document still encrypted") self._outline = self._loadOutline() if self._outline: > self._outline.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5136: AttributeError __________________________ test_cansaveincrementally ___________________________ def test_cansaveincrementally(): > doc = fitz.open(filename) tests/test_general.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:3967: in __init__ self.init_doc() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document('/builddir/build/BUILD/PyMuPDF-1.21.1/tests/resources/001003ED.pdf') def init_doc(self): if self.is_encrypted: raise ValueError("cannot initialize - document still encrypted") self._outline = self._loadOutline() if self._outline: > self._outline.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5136: AttributeError ________________________________ test_iswrapped ________________________________ def test_iswrapped(): > doc = fitz.open(filename) tests/test_general.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:3967: in __init__ self.init_doc() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document('/builddir/build/BUILD/PyMuPDF-1.21.1/tests/resources/001003ED.pdf') def init_doc(self): if self.is_encrypted: raise ValueError("cannot initialize - document still encrypted") self._outline = self._loadOutline() if self._outline: > self._outline.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5136: AttributeError ______________________________ test_wrapcontents _______________________________ def test_wrapcontents(): > doc = fitz.open(filename) tests/test_general.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:3967: in __init__ self.init_doc() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document('/builddir/build/BUILD/PyMuPDF-1.21.1/tests/resources/001003ED.pdf') def init_doc(self): if self.is_encrypted: raise ValueError("cannot initialize - document still encrypted") self._outline = self._loadOutline() if self._outline: > self._outline.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5136: AttributeError _________________________________ test_bug1971 _________________________________ def test_bug1971(): for _ in range(2): doc = fitz.Document(f'{scriptdir}/resources/bug1971.pdf') > page = next(doc.pages()) tests/test_general.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5497: in pages yield (self.load_page(pno)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document('/builddir/build/BUILD/PyMuPDF-1.21.1/tests/resources/bug1971.pdf') page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError ______________________________ test_default_font _______________________________ def test_default_font(): > f = fitz.Font() tests/test_general.py:124: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <[TypeError("in method 'Font_name', argument 1 of type 'struct Font *'") raised in repr()] Font object at 0x7f5fe729e290> fontname = None, fontfile = None, fontbuffer = None, script = 0, language = None ordering = -1, is_bold = 0, is_italic = 0, is_serif = 0 def __init__(self, fontname=None, fontfile=None, fontbuffer=None, script=0, language=None, ordering=-1, is_bold=0, is_italic=0, is_serif=0): if fontbuffer: if hasattr(fontbuffer, "getvalue"): fontbuffer = fontbuffer.getvalue() elif type(fontbuffer) is bytearray: fontbuffer = bytes(fontbuffer) if type(fontbuffer) is not bytes: raise ValueError("bad type: 'fontbuffer'") if fontname: if "/" in fontname or "\\" in fontname or "." in fontname: print("Warning: did you mean a fontfile?") if fontname.lower() in ("china-t", "china-s", "japan", "korea","china-ts", "china-ss", "japan-s", "korea-s", "cjk"): ordering = 0 elif fontname.lower() in fitz_fontdescriptors.keys(): import pymupdf_fonts # optional fonts fontbuffer = pymupdf_fonts.myfont(fontname) # make a copy fontname = None # ensure using fontbuffer only del pymupdf_fonts # remove package again elif ordering < 0: fontname = Base14_fontdict.get(fontname.lower(), fontname) > _fitz.Font_swiginit(self, _fitz.new_Font(fontname, fontfile, fontbuffer, script, language, ordering, is_bold, is_italic, is_serif)) E RuntimeError: cannot create font ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:8828: RuntimeError ________________________________ test_pageboxes ________________________________ def test_pageboxes(): """Tests concerning ArtBox, TrimBox, BleedBox.""" doc = fitz.open() > page = doc.new_page() tests/test_geometry.py:316: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError _______________________________ test_image_bbox ________________________________ def test_image_bbox(): > page = doc[0] tests/test_imagebbox.py:19: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document('/builddir/build/BUILD/PyMuPDF-1.21.1/tests/resources/image-file1.pdf') page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError _________________________________ test_bboxlog _________________________________ def test_bboxlog(): doc = fitz.open() > page = doc.new_page() tests/test_imagebbox.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError _________________________________ test_insert __________________________________ def test_insert(): doc = fitz.open() > page = doc.new_page() tests/test_insertimage.py:17: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError _________________________________ test_insert __________________________________ def test_insert(): all_text_original = [] # text on input pages all_text_combined = [] # text on resulting output pages # prepare input PDFs doc1 = fitz.open() for i in range(5): # just arbitrary number of pages text = f"doc 1, page {i}" # the 'globally' unique text > page = doc1.new_page() tests/test_insertpdf.py:64: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError _______________________ test_issue1417_insertpdf_in_loop _______________________ def test_issue1417_insertpdf_in_loop(): """Using a context manager instead of explicitly closing files""" f = os.path.join(resources, "1.pdf") big_doc = fitz.open() fd1 = os.open( f, os.O_RDONLY) os.close( fd1) for n in range(0, 1025): with fitz.open(f) as pdf: > big_doc.insert_pdf(pdf) tests/test_insertpdf.py:109: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4612: in insert_pdf self._do_links(docsrc, from_page = from_page, to_page = to_page, ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1570: in do_links page_src = doc2[pno_src[i]] # load source page ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = closed Document('/builddir/build/BUILD/PyMuPDF-1.21.1/tests/resources/1.pdf') page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError ________________________________ test_quadcalc _________________________________ def test_quadcalc(): text = " angle 327" # search for this text doc = fitz.open(filename) > page = doc[0] tests/test_linequad.py:16: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document('/builddir/build/BUILD/PyMuPDF-1.21.1/tests/resources/quad-calc-0.pdf') page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError _________________________________ test_layout __________________________________ def test_layout(): """Memorize a page location, re-layout with ISO-A4, assert pre-determined location.""" loc = doc.make_bookmark((5, 11)) > doc.layout(fitz.Rect(fitz.paper_rect("a4"))) tests/test_nonpdf.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4379: in layout self.init_doc() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document('/builddir/build/BUILD/PyMuPDF-1.21.1/tests/resources/Bezier.epub') def init_doc(self): if self.is_encrypted: raise ValueError("cannot initialize - document still encrypted") self._outline = self._loadOutline() if self._outline: > self._outline.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5136: AttributeError ________________________________ test_rotation1 ________________________________ def test_rotation1(): doc = fitz.open() > page = doc.new_page() tests/test_object_manipulation.py:18: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError ________________________________ test_rotation2 ________________________________ def test_rotation2(): doc = fitz.open() > page = doc.new_page() tests/test_object_manipulation.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError _________________________________ test_trailer _________________________________ def test_trailer(): """Access PDF trailer information.""" > doc = fitz.open(filename) tests/test_object_manipulation.py:32: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:3967: in __init__ self.init_doc() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document('/builddir/build/BUILD/PyMuPDF-1.21.1/tests/resources/001003ED.pdf') def init_doc(self): if self.is_encrypted: raise ValueError("cannot initialize - document still encrypted") self._outline = self._loadOutline() if self._outline: > self._outline.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5136: AttributeError ___________________________________ test_oc2 ___________________________________ def test_oc2(): # source file with at least 4 pages src = fitz.open(filename) # new PDF with one page doc = fitz.open() > page = doc.new_page() tests/test_optional_content.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError ________________________________ test_deletion _________________________________ def test_deletion(): # First prepare the document. doc = fitz.open() toc = [] for i in range(page_count): > page = doc.new_page() # make a page tests/test_pagedelete.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError ________________________________ test_setlabels ________________________________ def test_setlabels(): """Check setting and inquiring page labels. - Make a PDF with 10 pages - Label pages - Inquire labels of pages - Get list of page numbers for a given label. """ > doc = make_doc() tests/test_pagelabels.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_pagelabels.py:12: in make_doc page = doc.new_page() ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError _______________________________ test_pagepixmap ________________________________ def test_pagepixmap(): # pixmap from an EPUB page > doc = fitz.open(epub) tests/test_pixmap.py:20: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:3967: in __init__ self.init_doc() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document('/builddir/build/BUILD/PyMuPDF-1.21.1/tests/resources/Bezier.epub') def init_doc(self): if self.is_encrypted: raise ValueError("cannot initialize - document still encrypted") self._outline = self._loadOutline() if self._outline: > self._outline.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5136: AttributeError ________________________________ test_pdfpixmap ________________________________ def test_pdfpixmap(): # pixmap from xref in a PDF > doc = fitz.open(pdf) tests/test_pixmap.py:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:3967: in __init__ self.init_doc() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document('/builddir/build/BUILD/PyMuPDF-1.21.1/tests/resources/001003ED.pdf') def init_doc(self): if self.is_encrypted: raise ValueError("cannot initialize - document still encrypted") self._outline = self._loadOutline() if self._outline: > self._outline.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5136: AttributeError _______________________________ test_filepixmap ________________________________ def test_filepixmap(): # pixmaps from file and from stream # should lead to same result pix1 = fitz.Pixmap(imgfile) stream = open(imgfile, "rb").read() pix2 = fitz.Pixmap(stream) > assert repr(pix1) == repr(pix2) tests/test_pixmap.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <[AttributeError("'SwigPyObject' object has no attribute 'name'") raised in repr()] Pixmap object at 0x7f5fe72863d0> def __repr__(self): EnsureOwnership(self) if not type(self) is Pixmap: return if self.colorspace: > return "Pixmap(%s, %s, %s)" % (self.colorspace.name, self.irect, self.alpha) E AttributeError: 'SwigPyObject' object has no attribute 'name' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:7232: AttributeError __________________________________ test_save ___________________________________ tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_save0') def test_save(tmpdir): # pixmaps from file then save to image # make pixmap from this and confirm equality pix1 = fitz.Pixmap(imgfile) outfile = os.path.join(tmpdir, "foo.png") > pix1.save(outfile, output="png") tests/test_pixmap.py:72: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <[AttributeError("'SwigPyObject' object has no attribute 'name'") raised in repr()] Pixmap object at 0x7f5fe7231b50> filename = '/tmp/pytest-of-mockbuild/pytest-0/test_save0/foo.png' output = 'png' def save(self, filename, output=None): """Output as image in format determined by filename extension. Args: output: (str) only use to overrule filename extension. Default is PNG. Others are PNM, PGM, PPM, PBM, PAM, PSD, PS. """ EnsureOwnership(self) valid_formats = {"png": 1, "pnm": 2, "pgm": 2, "ppm": 2, "pbm": 2, "pam": 3, "tga": 4, "tpic": 4, "psd": 5, "ps": 6} if type(filename) is str: pass elif hasattr(filename, "absolute"): filename = str(filename) elif hasattr(filename, "name"): filename = filename.name if output is None: _, ext = os.path.splitext(filename) output = ext[1:] idx = valid_formats.get(output.lower(), 1) if self.alpha and idx in (2, 6): raise ValueError("'%s' cannot have alpha" % output) > if self.colorspace and self.colorspace.n > 3 and idx in (1, 2, 4): E AttributeError: 'SwigPyObject' object has no attribute 'n' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:6967: AttributeError _______________________________ test_color_count _______________________________ def test_color_count(): pm = fitz.Pixmap(imgfile) > assert pm.color_count() == 40624 E assert 39912 == 40624 E + where 39912 = <[AttributeError("'SwigPyObject' object has no attribute 'name'") raised in repr()] method object at 0x7f5fe73e9880>() E + where <[AttributeError("'SwigPyObject' object has no attribute 'name'") raised in repr()] method object at 0x7f5fe73e9880> = <[AttributeError("'SwigPyObject' object has no attribute 'name'") raised in repr()] Pixmap object at 0x7f5fe761fcd0>.color_count tests/test_pixmap.py:94: AssertionError _________________________________ test_insert __________________________________ def test_insert(): doc = fitz.open() > page = doc.new_page() tests/test_showpdfpage.py:18: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError ________________________________ test_textbox1 _________________________________ def test_textbox1(): """Use TextWriter for text insertion.""" doc = fitz.open() > page = doc.new_page() tests/test_textbox.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError ________________________________ test_textbox2 _________________________________ def test_textbox2(): """Use basic text insertion.""" doc = fitz.open() ocg = doc.add_ocg("ocg1") > page = doc.new_page() tests/test_textbox.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError ________________________________ test_textbox3 _________________________________ def test_textbox3(): """Use TextWriter for text insertion.""" doc = fitz.open() > page = doc.new_page() tests/test_textbox.py:61: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError ________________________________ test_textbox4 _________________________________ def test_textbox4(): """Use TextWriter for text insertion.""" doc = fitz.open() ocg = doc.add_ocg("ocg1") > page = doc.new_page() tests/test_textbox.py:85: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError ________________________________ test_textbox5 _________________________________ def test_textbox5(): """Using basic text insertion.""" fitz.TOOLS.set_small_glyph_heights(True) doc = fitz.open() > page = doc.new_page() tests/test_textbox.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError ________________________________ test_extract1 _________________________________ def test_extract1(): doc = fitz.open(filename) > page = doc[0] tests/test_textextract.py:15: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document('/builddir/build/BUILD/PyMuPDF-1.21.1/tests/resources/symbol-list.pdf') page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError _________________________________ test_search1 _________________________________ def test_search1(): > doc = fitz.open(filename1) tests/test_textsearch.py:20: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:3967: in __init__ self.init_doc() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document('/builddir/build/BUILD/PyMuPDF-1.21.1/tests/resources/2.pdf') def init_doc(self): if self.is_encrypted: raise ValueError("cannot initialize - document still encrypted") self._outline = self._loadOutline() if self._outline: > self._outline.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5136: AttributeError _________________________________ test_search2 _________________________________ def test_search2(): doc = fitz.open(filename2) > page = doc[0] tests/test_textsearch.py:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document('/builddir/build/BUILD/PyMuPDF-1.21.1/tests/resources/github_sample.pdf') page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError _______________________________ test_simple_toc ________________________________ def test_simple_toc(): simple_lines = open(simple_toc, "rb").read() > toc = b"".join([str(t).encode() for t in doc.get_toc(True)]) tests/test_toc.py:21: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1046: in get_toc doc.init_doc() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document('/builddir/build/BUILD/PyMuPDF-1.21.1/tests/resources/001003ED.pdf') def init_doc(self): if self.is_encrypted: raise ValueError("cannot initialize - document still encrypted") self._outline = self._loadOutline() if self._outline: > self._outline.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5136: AttributeError ________________________________ test_full_toc _________________________________ def test_full_toc(): full_lines = open(full_toc, "rb").read() > toc = b"".join([str(t).encode() for t in doc.get_toc(False)]) tests/test_toc.py:27: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1046: in get_toc doc.init_doc() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document('/builddir/build/BUILD/PyMuPDF-1.21.1/tests/resources/001003ED.pdf') def init_doc(self): if self.is_encrypted: raise ValueError("cannot initialize - document still encrypted") self._outline = self._loadOutline() if self._outline: > self._outline.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5136: AttributeError ________________________________ test_setcolors ________________________________ def test_setcolors(): > doc = fitz.open(filename2) tests/test_toc.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:3967: in __init__ self.init_doc() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document('/builddir/build/BUILD/PyMuPDF-1.21.1/tests/resources/2.pdf') def init_doc(self): if self.is_encrypted: raise ValueError("cannot initialize - document still encrypted") self._outline = self._loadOutline() if self._outline: > self._outline.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5136: AttributeError __________________________________ test_text ___________________________________ def test_text(): doc = fitz.open() > page = doc.new_page() tests/test_widgets.py:24: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError ________________________________ test_checkbox _________________________________ def test_checkbox(): doc = fitz.open() > page = doc.new_page() tests/test_widgets.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError _________________________________ test_listbox _________________________________ def test_listbox(): doc = fitz.open() > page = doc.new_page() tests/test_widgets.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError ________________________________ test_combobox _________________________________ def test_combobox(): doc = fitz.open() > page = doc.new_page() tests/test_widgets.py:94: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError __________________________________ test_text2 __________________________________ def test_text2(): doc = fitz.open() > doc.new_page() tests/test_widgets.py:130: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/utils.py:1841: in new_page return doc[pno] ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:5445: in __getitem__ return self.load_page(i) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Document(), page_id = 0 def load_page(self, page_id): """Load a page. 'page_id' is either a 0-based page number or a tuple (chapter, pno), with chapter number and page number within that chapter. """ if self.is_closed or self.is_encrypted: raise ValueError("document closed or encrypted") if page_id is None: page_id = 0 if page_id not in self: raise ValueError("page not in document") if type(page_id) is int and page_id < 0: np = self.page_count while page_id < 0: page_id += np val = _fitz.Document_load_page(self, page_id) > val.thisown = True E AttributeError: 'SwigPyObject' object has no attribute 'thisown' ../../BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/lib64/python3.11/site-packages/fitz/fitz.py:4001: AttributeError =========================== short test summary info ============================ FAILED tests/test_annots.py::test_polyline - AttributeError: 'SwigPyObject' o... FAILED tests/test_annots.py::test_polygon - AttributeError: 'SwigPyObject' ob... FAILED tests/test_annots.py::test_line - AttributeError: 'SwigPyObject' objec... FAILED tests/test_annots.py::test_square - AttributeError: 'SwigPyObject' obj... FAILED tests/test_annots.py::test_circle - AttributeError: 'SwigPyObject' obj... FAILED tests/test_annots.py::test_fileattachment - AttributeError: 'SwigPyObj... FAILED tests/test_annots.py::test_stamp - AttributeError: 'SwigPyObject' obje... FAILED tests/test_annots.py::test_redact - AttributeError: 'SwigPyObject' obj... FAILED tests/test_annots.py::test_1645 - AttributeError: 'SwigPyObject' objec... FAILED tests/test_annots.py::test_1824 - AttributeError: 'SwigPyObject' objec... FAILED tests/test_crypting.py::test_encryption - AttributeError: 'SwigPyObjec... FAILED tests/test_docs_samples.py::test_docs_samples[/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/table01.py] FAILED tests/test_docs_samples.py::test_docs_samples[/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/story-write-stabilized.py] FAILED tests/test_docs_samples.py::test_docs_samples[/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/story-write-stabilized-links.py] FAILED tests/test_docs_samples.py::test_docs_samples[/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/simple-grid.py] FAILED tests/test_docs_samples.py::test_docs_samples[/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/showpdf-page.py] FAILED tests/test_docs_samples.py::test_docs_samples[/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/quickfox.py] FAILED tests/test_docs_samples.py::test_docs_samples[/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/quickfox-image-no-go.py] FAILED tests/test_docs_samples.py::test_docs_samples[/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/new-annots.py] FAILED tests/test_docs_samples.py::test_docs_samples[/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/json-example.py] FAILED tests/test_docs_samples.py::test_docs_samples[/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/filmfestival-sql.py] FAILED tests/test_docs_samples.py::test_docs_samples[/builddir/build/BUILD/PyMuPDF-1.21.1/docs/samples/code-printer.py] FAILED tests/test_drawings.py::test_drawings1 - AttributeError: 'SwigPyObject... FAILED tests/test_drawings.py::test_drawings2 - AttributeError: 'SwigPyObject... FAILED tests/test_drawings.py::test_drawings3 - AttributeError: 'SwigPyObject... FAILED tests/test_general.py::test_haslinks - AttributeError: 'SwigPyObject' ... FAILED tests/test_general.py::test_hasannots - AttributeError: 'SwigPyObject'... FAILED tests/test_general.py::test_haswidgets - AttributeError: 'SwigPyObject... FAILED tests/test_general.py::test_isrepaired - AttributeError: 'SwigPyObject... FAILED tests/test_general.py::test_isdirty - AttributeError: 'SwigPyObject' o... FAILED tests/test_general.py::test_cansaveincrementally - AttributeError: 'Sw... FAILED tests/test_general.py::test_iswrapped - AttributeError: 'SwigPyObject'... FAILED tests/test_general.py::test_wrapcontents - AttributeError: 'SwigPyObje... FAILED tests/test_general.py::test_bug1971 - AttributeError: 'SwigPyObject' o... FAILED tests/test_general.py::test_default_font - RuntimeError: cannot create... FAILED tests/test_geometry.py::test_pageboxes - AttributeError: 'SwigPyObject... FAILED tests/test_imagebbox.py::test_image_bbox - AttributeError: 'SwigPyObje... FAILED tests/test_imagebbox.py::test_bboxlog - AttributeError: 'SwigPyObject'... FAILED tests/test_insertimage.py::test_insert - AttributeError: 'SwigPyObject... FAILED tests/test_insertpdf.py::test_insert - AttributeError: 'SwigPyObject' ... FAILED tests/test_insertpdf.py::test_issue1417_insertpdf_in_loop - AttributeE... FAILED tests/test_linequad.py::test_quadcalc - AttributeError: 'SwigPyObject'... FAILED tests/test_nonpdf.py::test_layout - AttributeError: 'SwigPyObject' obj... FAILED tests/test_object_manipulation.py::test_rotation1 - AttributeError: 'S... FAILED tests/test_object_manipulation.py::test_rotation2 - AttributeError: 'S... FAILED tests/test_object_manipulation.py::test_trailer - AttributeError: 'Swi... FAILED tests/test_optional_content.py::test_oc2 - AttributeError: 'SwigPyObje... FAILED tests/test_pagedelete.py::test_deletion - AttributeError: 'SwigPyObjec... FAILED tests/test_pagelabels.py::test_setlabels - AttributeError: 'SwigPyObje... FAILED tests/test_pixmap.py::test_pagepixmap - AttributeError: 'SwigPyObject'... FAILED tests/test_pixmap.py::test_pdfpixmap - AttributeError: 'SwigPyObject' ... FAILED tests/test_pixmap.py::test_filepixmap - AttributeError: 'SwigPyObject'... FAILED tests/test_pixmap.py::test_save - AttributeError: 'SwigPyObject' objec... FAILED tests/test_pixmap.py::test_color_count - assert 39912 == 40624 FAILED tests/test_showpdfpage.py::test_insert - AttributeError: 'SwigPyObject... FAILED tests/test_textbox.py::test_textbox1 - AttributeError: 'SwigPyObject' ... FAILED tests/test_textbox.py::test_textbox2 - AttributeError: 'SwigPyObject' ... FAILED tests/test_textbox.py::test_textbox3 - AttributeError: 'SwigPyObject' ... FAILED tests/test_textbox.py::test_textbox4 - AttributeError: 'SwigPyObject' ... FAILED tests/test_textbox.py::test_textbox5 - AttributeError: 'SwigPyObject' ... FAILED tests/test_textextract.py::test_extract1 - AttributeError: 'SwigPyObje... FAILED tests/test_textsearch.py::test_search1 - AttributeError: 'SwigPyObject... FAILED tests/test_textsearch.py::test_search2 - AttributeError: 'SwigPyObject... FAILED tests/test_toc.py::test_simple_toc - AttributeError: 'SwigPyObject' ob... FAILED tests/test_toc.py::test_full_toc - AttributeError: 'SwigPyObject' obje... FAILED tests/test_toc.py::test_setcolors - AttributeError: 'SwigPyObject' obj... FAILED tests/test_widgets.py::test_text - AttributeError: 'SwigPyObject' obje... FAILED tests/test_widgets.py::test_checkbox - AttributeError: 'SwigPyObject' ... FAILED tests/test_widgets.py::test_listbox - AttributeError: 'SwigPyObject' o... FAILED tests/test_widgets.py::test_combobox - AttributeError: 'SwigPyObject' ... FAILED tests/test_widgets.py::test_text2 - AttributeError: 'SwigPyObject' obj... ======================== 71 failed, 38 passed in 15.49s ======================== swig/python detected a memory leak of type 'Annot *', no destructor found. swig/python detected a memory leak of type 'Outline *', no destructor found. swig/python detected a memory leak of type 'Outline *', no destructor found. swig/python detected a memory leak of type 'Colorspace *', no destructor found. swig/python detected a memory leak of type 'Colorspace *', no destructor found. swig/python detected a memory leak of type 'Colorspace *', no destructor found. swig/python detected a memory leak of type 'Outline *', no destructor found. Processing files: python3-PyMuPDF-1.21.1-1.fc38.x86_64 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.rsijpD + : + RPM_EC=0 ++ jobs -p + exit 0 + umask 022 + cd /builddir/build/BUILD + cd PyMuPDF-1.21.1 + LICENSEDIR=/builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/share/licenses/python3-PyMuPDF + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/share/licenses/python3-PyMuPDF + cp -pr COPYING /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/share/licenses/python3-PyMuPDF + RPM_EC=0 ++ jobs -p + exit 0 Provides: python-PyMuPDF = 1.21.1-1.fc38 python3-PyMuPDF = 1.21.1-1.fc38 python3-PyMuPDF(x86-64) = 1.21.1-1.fc38 python3.11-PyMuPDF = 1.21.1-1.fc38 python3.11dist(pymupdf) = 1.21.1 python3dist(pymupdf) = 1.21.1 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.11)(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.7)(64bit) libfreetype.so.6()(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libgumbo.so.1()(64bit) libharfbuzz.so.0()(64bit) libjbig2dec.so.0()(64bit) libjpeg.so.62()(64bit) libjpeg.so.62(LIBJPEG_6.2)(64bit) libleptonica.so.5.4.0()(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.2.5)(64bit) libm.so.6(GLIBC_2.27)(64bit) libm.so.6(GLIBC_2.29)(64bit) libm.so.6(GLIBC_2.35)(64bit) libopenjp2.so.7()(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(CXXABI_1.3.9)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) libstdc++.so.6(GLIBCXX_3.4.30)(64bit) libtesseract.so.5.2.0()(64bit) python(abi) = 3.11 rtld(GNU_HASH) Obsoletes: python-PyMuPDF < 1.21.1-1.fc38 Processing files: python-PyMuPDF-doc-1.21.1-1.fc38.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.UequEN + umask 022 + cd /builddir/build/BUILD + cd PyMuPDF-1.21.1 + DOCDIR=/builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/share/doc/python-PyMuPDF-doc + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/share/doc/python-PyMuPDF-doc + cp -pr docs_built/_images docs_built/_sources docs_built/_static docs_built/algebra.html docs_built/annot.html docs_built/app1.html docs_built/app2.html docs_built/app3.html docs_built/archive-class.html docs_built/changes.html docs_built/classes.html docs_built/colors.html docs_built/colorspace.html docs_built/coop_low.html docs_built/deprecated.html docs_built/device.html docs_built/displaylist.html docs_built/document-writer-class.html docs_built/document.html docs_built/faq.html docs_built/font.html docs_built/footer.html docs_built/functions.html docs_built/genindex-A.html docs_built/genindex-B.html docs_built/genindex-C.html docs_built/genindex-D.html docs_built/genindex-E.html docs_built/genindex-F.html docs_built/genindex-G.html docs_built/genindex-H.html docs_built/genindex-I.html docs_built/genindex-J.html docs_built/genindex-K.html docs_built/genindex-L.html docs_built/genindex-M.html docs_built/genindex-N.html docs_built/genindex-O.html docs_built/genindex-P.html docs_built/genindex-Q.html docs_built/genindex-R.html docs_built/genindex-S.html docs_built/genindex-T.html docs_built/genindex-U.html docs_built/genindex-V.html docs_built/genindex-W.html docs_built/genindex-X.html docs_built/genindex-Y.html docs_built/genindex-Z.html docs_built/genindex-_.html docs_built/genindex-all.html docs_built/genindex.html docs_built/glossary.html docs_built/header.html docs_built/identity.html docs_built/index.html docs_built/installation.html docs_built/intro.html docs_built/irect.html docs_built/link.html docs_built/linkdest.html docs_built/lowlevel.html docs_built/matrix.html docs_built/module.html docs_built/objects.inv docs_built/outline.html docs_built/page.html docs_built/pixmap.html docs_built/point.html docs_built/quad.html docs_built/recipes-annotations.html docs_built/recipes-common-issues-and-their-solutions.html docs_built/recipes-drawing-and-graphics.html docs_built/recipes-general.html docs_built/recipes-images.html docs_built/recipes-journalling.html docs_built/recipes-low-level-interfaces.html docs_built/recipes-multiprocessing.html docs_built/recipes-stories.html docs_built/recipes-text.html docs_built/recipes.html docs_built/rect.html docs_built/search.html docs_built/searchindex.js docs_built/shape.html docs_built/story-class.html docs_built/textpage.html docs_built/textwriter.html docs_built/toc.html docs_built/tools.html docs_built/tutorial.html docs_built/vars.html docs_built/version.html docs_built/widget.html docs_built/xml-class.html docs_built/znames.html /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/share/doc/python-PyMuPDF-doc + cp -pr README.md /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64/usr/share/doc/python-PyMuPDF-doc + RPM_EC=0 ++ jobs -p + exit 0 Provides: python-PyMuPDF-doc = 1.21.1-1.fc38 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: python-PyMuPDF-debugsource-1.21.1-1.fc38.x86_64 Provides: python-PyMuPDF-debugsource = 1.21.1-1.fc38 python-PyMuPDF-debugsource(x86-64) = 1.21.1-1.fc38 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: python3-PyMuPDF-debuginfo-1.21.1-1.fc38.x86_64 Provides: debuginfo(build-id) = f75a3b0ee30ac0369ae950a5a5d90490b4a1e1b2 python-PyMuPDF-debuginfo = 1.21.1-1.fc38 python3-PyMuPDF-debuginfo = 1.21.1-1.fc38 python3-PyMuPDF-debuginfo(x86-64) = 1.21.1-1.fc38 python3.11-PyMuPDF-debuginfo = 1.21.1-1.fc38 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: python-PyMuPDF-debugsource(x86-64) = 1.21.1-1.fc38 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64 Wrote: /builddir/build/RPMS/python3-PyMuPDF-1.21.1-1.fc38.x86_64.rpm Wrote: /builddir/build/RPMS/python-PyMuPDF-doc-1.21.1-1.fc38.noarch.rpm Wrote: /builddir/build/RPMS/python-PyMuPDF-debugsource-1.21.1-1.fc38.x86_64.rpm Wrote: /builddir/build/RPMS/python3-PyMuPDF-debuginfo-1.21.1-1.fc38.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.JfKhtP + umask 022 + cd /builddir/build/BUILD + cd PyMuPDF-1.21.1 + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-PyMuPDF-1.21.1-1.fc38.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.Rqd5rs + umask 022 + cd /builddir/build/BUILD + rm -rf PyMuPDF-1.21.1 PyMuPDF-1.21.1.gemspec + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0