>>> ocrmypdf: Building community/ocrmypdf 16.1.1-r0 (using abuild 3.13.0-r3) started Wed, 24 Apr 2024 18:00:07 +0000 >>> ocrmypdf: Checking sanity of /home/buildozer/aports/community/ocrmypdf/APKBUILD... >>> ocrmypdf: Analyzing dependencies... >>> ocrmypdf: Installing for build: build-base ghostscript jbig2enc leptonica pngquant py3-deprecation py3-img2pdf py3-packaging py3-pdfminer py3-pikepdf py3-pillow py3-pluggy py3-reportlab py3-rich python3 qpdf tesseract-ocr unpaper py3-gpep517 py3-setuptools_scm py3-wheel py3-hypothesis py3-pytest py3-pytest-cov py3-pytest-xdist tesseract-ocr-data-eng tesseract-ocr-data-osd (1/189) Installing dbus-libs (1.14.10-r1) (2/189) Installing libintl (0.22.5-r0) (3/189) Installing avahi-libs (0.8-r17) (4/189) Installing nettle (3.9.1-r0) (5/189) Installing libffi (3.4.6-r0) (6/189) Installing libtasn1 (4.19.0-r2) (7/189) Installing p11-kit (0.25.3-r0) (8/189) Installing gnutls (3.8.3-r0) (9/189) Installing cups-libs (2.4.7-r3) (10/189) Installing libbz2 (1.0.8-r6) (11/189) Installing libpng (1.6.43-r0) (12/189) Installing freetype (2.13.2-r0) (13/189) Installing fontconfig (2.15.0-r1) (14/189) Installing jbig2dec (0.20-r0) (15/189) Installing libjpeg-turbo (3.0.2-r0) (16/189) Installing lcms2 (2.16-r0) (17/189) Installing libsharpyuv (1.3.2-r0) (18/189) Installing libwebp (1.3.2-r0) (19/189) Installing tiff (4.6.0t-r0) (20/189) Installing ghostscript (10.02.1-r0) (21/189) Installing gdbm (1.23-r1) (22/189) Installing xz-libs (5.6.1-r3) (23/189) Installing mpdecimal (4.0.0-r0) (24/189) Installing libpanelw (6.4_p20240330-r0) (25/189) Installing readline (8.2.10-r0) (26/189) Installing sqlite-libs (3.45.3-r0) (27/189) Installing python3 (3.12.3-r1) (28/189) Installing python3-pycache-pyc0 (3.12.3-r1) (29/189) Installing pyc (3.12.3-r1) (30/189) Installing python3-pyc (3.12.3-r1) (31/189) Installing giflib (5.2.2-r0) (32/189) Installing libwebpmux (1.3.2-r0) (33/189) Installing leptonica (1.84.1-r0) (34/189) Installing jbig2enc (0.29-r4) (35/189) Installing pngquant (3.0.3-r0) (36/189) Installing py3-parsing (3.1.2-r1) (37/189) Installing py3-parsing-pyc (3.1.2-r1) (38/189) Installing py3-packaging (24.0-r1) (39/189) Installing py3-packaging-pyc (24.0-r1) (40/189) Installing py3-deprecation (2.1.0-r7) (41/189) Installing py3-deprecation-pyc (2.1.0-r7) (42/189) Installing libimagequant (4.2.2-r0) (43/189) Installing openjpeg (2.5.2-r0) (44/189) Installing libwebpdemux (1.3.2-r0) (45/189) Installing libxau (1.0.11-r4) (46/189) Installing libmd (1.1.0-r0) (47/189) Installing libbsd (0.12.2-r0) (48/189) Installing libxdmcp (1.1.5-r1) (49/189) Installing libxcb (1.16.1-r0) (50/189) Installing py3-pillow (10.3.0-r2) (51/189) Installing py3-pillow-pyc (10.3.0-r2) (52/189) Installing py3-wrapt (1.16.0-r1) (53/189) Installing py3-wrapt-pyc (1.16.0-r1) (54/189) Installing py3-deprecated (1.2.14-r3) (55/189) Installing py3-deprecated-pyc (1.2.14-r3) (56/189) Installing libgpg-error (1.48-r0) (57/189) Installing libgcrypt (1.10.3-r0) (58/189) Installing libxml2 (2.12.6-r2) (59/189) Installing libxslt (1.1.39-r1) (60/189) Installing py3-lxml (5.1.0-r0) (61/189) Installing py3-lxml-pyc (5.1.0-r0) (62/189) Installing qpdf-libs (11.9.0-r0) (63/189) Installing py3-pikepdf (8.14.0-r2) (64/189) Installing py3-pikepdf-pyc (8.14.0-r2) (65/189) Installing py3-img2pdf (0.5.1-r1) (66/189) Installing py3-img2pdf-pyc (0.5.1-r1) (67/189) Installing py3-charset-normalizer (3.3.2-r1) (68/189) Installing py3-charset-normalizer-pyc (3.3.2-r1) (69/189) Installing py3-cparser (2.22-r1) (70/189) Installing py3-cparser-pyc (2.22-r1) (71/189) Installing py3-cffi (1.16.0-r1) (72/189) Installing py3-cffi-pyc (1.16.0-r1) (73/189) Installing py3-cryptography (42.0.5-r1) (74/189) Installing py3-cryptography-pyc (42.0.5-r1) (75/189) Installing py3-pdfminer (20231228-r1) (76/189) Installing py3-pdfminer-pyc (20231228-r1) (77/189) Installing py3-pluggy (1.4.0-r1) (78/189) Installing py3-pluggy-pyc (1.4.0-r1) (79/189) Installing encodings (1.0.7-r1) (80/189) Installing libfontenc (1.1.7-r5) (81/189) Installing mkfontscale (1.2.2-r6) (82/189) Installing font-dejavu (2.37-r5) (83/189) Installing libart-lgpl (2.3.21-r8) (84/189) Installing py3-reportlab (3.6.13-r2) (85/189) Installing py3-reportlab-pyc (3.6.13-r2) (86/189) Installing py3-attrs (23.2.0-r1) (87/189) Installing py3-attrs-pyc (23.2.0-r1) (88/189) Installing py3-mdurl (0.1.2-r3) (89/189) Installing py3-mdurl-pyc (0.1.2-r3) (90/189) Installing py3-markdown-it-py (3.0.0-r1) (91/189) Installing py3-markdown-it-py-pyc (3.0.0-r1) (92/189) Installing py3-pygments (2.17.2-r1) (93/189) Installing py3-pygments-pyc (2.17.2-r1) (94/189) Installing py3-rich (13.7.1-r1) (95/189) Installing py3-rich-pyc (13.7.1-r1) (96/189) Installing qpdf (11.9.0-r0) (97/189) Installing opencl (2023.12.14-r0) (98/189) Installing libx11 (1.8.9-r1) (99/189) Installing libxext (1.3.6-r2) (100/189) Installing libxrender (0.9.11-r5) (101/189) Installing pixman (0.43.2-r0) (102/189) Installing cairo (1.18.0-r0) (103/189) Installing libeconf (0.6.2-r0) (104/189) Installing libblkid (2.40-r2) (105/189) Installing libmount (2.40-r2) (106/189) Installing glib (2.80.0-r3) (107/189) Installing graphite2 (1.3.14-r6) (108/189) Installing harfbuzz (8.4.0-r0) (109/189) Installing icu-data-en (74.2-r0) Executing icu-data-en-74.2-r0.post-install * * If you need ICU with non-English locales and legacy charset support, install * package icu-data-full. * (110/189) Installing icu-libs (74.2-r0) (111/189) Installing libxft (2.3.8-r3) (112/189) Installing fribidi (1.0.13-r0) (113/189) Installing pango (1.52.2-r0) (114/189) Installing tesseract-ocr (5.3.4-r0) (115/189) Installing libSvtAv1Enc (2.0.0-r1) (116/189) Installing aom-libs (3.8.2-r0) (117/189) Installing hwdata-pci (0.381-r0) (118/189) Installing libpciaccess (0.18.1-r0) (119/189) Installing libdrm (2.4.120-r0) (120/189) Installing libxfixes (6.0.1-r4) (121/189) Installing wayland-libs-client (1.22.0-r4) (122/189) Installing libva (2.21.0-r0) (123/189) Installing libvdpau (1.5-r3) (124/189) Installing ffmpeg-libavutil (6.1.1-r6) (125/189) Installing libdav1d (1.4.1-r0) (126/189) Installing openexr-libiex (3.1.13-r1) (127/189) Installing openexr-libilmthread (3.1.13-r1) (128/189) Installing imath (3.1.11-r2) (129/189) Installing openexr-libopenexr (3.1.13-r1) (130/189) Installing libhwy (1.0.7-r0) (131/189) Installing libjxl (0.9.1-r0) (132/189) Installing lame-libs (3.100-r5) (133/189) Installing opus (1.4-r0) (134/189) Installing rav1e-libs (0.7.1-r0) (135/189) Installing soxr (0.1.3-r7) (136/189) Installing ffmpeg-libswresample (6.1.1-r6) (137/189) Installing libogg (1.3.5-r5) (138/189) Installing libtheora (1.1.1-r18) (139/189) Installing libvorbis (1.3.7-r2) (140/189) Installing libvpx (1.14.0-r0) (141/189) Installing x264-libs (0.164_git20231001-r0) (142/189) Installing numactl (2.0.18-r0) (143/189) Installing x265-libs (3.6-r0) (144/189) Installing xvidcore (1.3.7-r2) (145/189) Installing ffmpeg-libavcodec (6.1.1-r6) (146/189) Installing libbluray (1.3.4-r1) (147/189) Installing mpg123-libs (1.32.6-r0) (148/189) Installing libopenmpt (0.7.6-r0) (149/189) Installing mbedtls (3.6.0-r0) (150/189) Installing librist (0.2.10-r1) (151/189) Installing libsrt (1.5.3-r0) (152/189) Installing libssh (0.10.6-r0) (153/189) Installing libsodium (1.0.19-r0) (154/189) Installing libzmq (4.3.5-r2) (155/189) Installing ffmpeg-libavformat (6.1.1-r6) (156/189) Installing unpaper (7.0.0-r1) (157/189) Installing py3-installer (0.7.0-r2) (158/189) Installing py3-installer-pyc (0.7.0-r2) (159/189) Installing py3-gpep517 (15-r2) (160/189) Installing py3-gpep517-pyc (15-r2) (161/189) Installing py3-setuptools (69.5.1-r0) (162/189) Installing py3-setuptools-pyc (69.5.1-r0) (163/189) Installing py3-setuptools_scm (8.0.4-r2) (164/189) Installing py3-setuptools_scm-pyc (8.0.4-r2) (165/189) Installing py3-wheel (0.42.0-r1) (166/189) Installing py3-wheel-pyc (0.42.0-r1) (167/189) Installing py3-sortedcontainers (2.4.0-r5) (168/189) Installing py3-sortedcontainers-pyc (2.4.0-r5) (169/189) Installing py3-hypothesis (6.99.4-r1) (170/189) Installing py3-hypothesis-pyc (6.99.4-r1) (171/189) Installing py3-iniconfig (2.0.0-r1) (172/189) Installing py3-iniconfig-pyc (2.0.0-r1) (173/189) Installing py3-py (1.11.0-r3) (174/189) Installing py3-py-pyc (1.11.0-r3) (175/189) Installing py3-pytest (8.1.1-r1) (176/189) Installing py3-pytest-pyc (8.1.1-r1) (177/189) Installing py3-coverage (6.5.0-r6) (178/189) Installing py3-coverage-pyc (6.5.0-r6) (179/189) Installing py3-pytest-cov (5.0.0-r0) (180/189) Installing py3-pytest-cov-pyc (5.0.0-r0) (181/189) Installing py3-apipkg (2.1.0-r3) (182/189) Installing py3-apipkg-pyc (2.1.0-r3) (183/189) Installing py3-execnet (1.9.0-r3) (184/189) Installing py3-execnet-pyc (1.9.0-r3) (185/189) Installing py3-pytest-xdist (3.5.0-r1) (186/189) Installing py3-pytest-xdist-pyc (3.5.0-r1) (187/189) Installing tesseract-ocr-data-eng (5.3.4-r0) (188/189) Installing tesseract-ocr-data-osd (5.3.4-r0) (189/189) Installing .makedepends-ocrmypdf (20240424.180013) Executing busybox-1.36.1-r25.trigger Executing fontconfig-2.15.0-r1.trigger Executing mkfontscale-1.2.2-r6.trigger Executing glib-2.80.0-r3.trigger OK: 526 MiB in 291 packages >>> ocrmypdf: Cleaning up srcdir >>> ocrmypdf: Cleaning up pkgdir >>> ocrmypdf: Cleaning up tmpdir >>> ocrmypdf: Fetching https://distfiles.alpinelinux.org/distfiles/edge/ocrmypdf-16.1.1.tar.gz >>> ocrmypdf: Fetching https://distfiles.alpinelinux.org/distfiles/edge/ocrmypdf-16.1.1.tar.gz >>> ocrmypdf: Checking sha512sums... ocrmypdf-16.1.1.tar.gz: OK >>> ocrmypdf: Unpacking /var/cache/distfiles/ocrmypdf-16.1.1.tar.gz... 2024-04-24 18:00:23,133 gpep517 INFO Building wheel via backend setuptools.build_meta /usr/lib/python3.12/site-packages/setuptools/config/pyprojecttoml.py:68: _ExperimentalConfiguration: `[tool.distutils]` in `pyproject.toml` is still *experimental* and likely to change in future releases. config = read_configuration(filepath, True, ignore_option_errors, dist) 2024-04-24 18:00:24,002 root INFO running bdist_wheel 2024-04-24 18:00:24,086 root INFO running build 2024-04-24 18:00:24,086 root INFO running build_py 2024-04-24 18:00:24,105 root INFO creating build 2024-04-24 18:00:24,105 root INFO creating build/lib 2024-04-24 18:00:24,106 root INFO creating build/lib/ocrmypdf 2024-04-24 18:00:24,107 root INFO copying src/ocrmypdf/pluginspec.py -> build/lib/ocrmypdf 2024-04-24 18:00:24,108 root INFO copying src/ocrmypdf/_concurrent.py -> build/lib/ocrmypdf 2024-04-24 18:00:24,109 root INFO copying src/ocrmypdf/_jobcontext.py -> build/lib/ocrmypdf 2024-04-24 18:00:24,110 root INFO copying src/ocrmypdf/quality.py -> build/lib/ocrmypdf 2024-04-24 18:00:24,111 root INFO copying src/ocrmypdf/_graft.py -> build/lib/ocrmypdf 2024-04-24 18:00:24,112 root INFO copying src/ocrmypdf/__main__.py -> build/lib/ocrmypdf 2024-04-24 18:00:24,113 root INFO copying src/ocrmypdf/imageops.py -> build/lib/ocrmypdf 2024-04-24 18:00:24,114 root INFO copying src/ocrmypdf/languages.py -> build/lib/ocrmypdf 2024-04-24 18:00:24,116 root INFO copying src/ocrmypdf/cli.py -> build/lib/ocrmypdf 2024-04-24 18:00:24,117 root INFO copying src/ocrmypdf/helpers.py -> build/lib/ocrmypdf 2024-04-24 18:00:24,118 root INFO copying src/ocrmypdf/_pipeline.py -> build/lib/ocrmypdf 2024-04-24 18:00:24,120 root INFO copying src/ocrmypdf/_progressbar.py -> build/lib/ocrmypdf 2024-04-24 18:00:24,121 root INFO copying src/ocrmypdf/_logging.py -> build/lib/ocrmypdf 2024-04-24 18:00:24,122 root INFO copying src/ocrmypdf/_version.py -> build/lib/ocrmypdf 2024-04-24 18:00:24,123 root INFO copying src/ocrmypdf/_plugin_manager.py -> build/lib/ocrmypdf 2024-04-24 18:00:24,124 root INFO copying src/ocrmypdf/__init__.py -> build/lib/ocrmypdf 2024-04-24 18:00:24,125 root INFO copying src/ocrmypdf/optimize.py -> build/lib/ocrmypdf 2024-04-24 18:00:24,126 root INFO copying src/ocrmypdf/_validation.py -> build/lib/ocrmypdf 2024-04-24 18:00:24,127 root INFO copying src/ocrmypdf/api.py -> build/lib/ocrmypdf 2024-04-24 18:00:24,128 root INFO copying src/ocrmypdf/_metadata.py -> build/lib/ocrmypdf 2024-04-24 18:00:24,129 root INFO copying src/ocrmypdf/exceptions.py -> build/lib/ocrmypdf 2024-04-24 18:00:24,130 root INFO copying src/ocrmypdf/pdfa.py -> build/lib/ocrmypdf 2024-04-24 18:00:24,132 root INFO creating build/lib/ocrmypdf/data 2024-04-24 18:00:24,133 root INFO copying src/ocrmypdf/data/__init__.py -> build/lib/ocrmypdf/data 2024-04-24 18:00:24,134 root INFO creating build/lib/ocrmypdf/subprocess 2024-04-24 18:00:24,135 root INFO copying src/ocrmypdf/subprocess/_windows.py -> build/lib/ocrmypdf/subprocess 2024-04-24 18:00:24,136 root INFO copying src/ocrmypdf/subprocess/__init__.py -> build/lib/ocrmypdf/subprocess 2024-04-24 18:00:24,138 root INFO creating build/lib/ocrmypdf/hocrtransform 2024-04-24 18:00:24,138 root INFO copying src/ocrmypdf/hocrtransform/_hocr.py -> build/lib/ocrmypdf/hocrtransform 2024-04-24 18:00:24,139 root INFO copying src/ocrmypdf/hocrtransform/__main__.py -> build/lib/ocrmypdf/hocrtransform 2024-04-24 18:00:24,141 root INFO copying src/ocrmypdf/hocrtransform/_font.py -> build/lib/ocrmypdf/hocrtransform 2024-04-24 18:00:24,142 root INFO copying src/ocrmypdf/hocrtransform/__init__.py -> build/lib/ocrmypdf/hocrtransform 2024-04-24 18:00:24,143 root INFO creating build/lib/ocrmypdf/_exec 2024-04-24 18:00:24,144 root INFO copying src/ocrmypdf/_exec/jbig2enc.py -> build/lib/ocrmypdf/_exec 2024-04-24 18:00:24,145 root INFO copying src/ocrmypdf/_exec/tesseract.py -> build/lib/ocrmypdf/_exec 2024-04-24 18:00:24,146 root INFO copying src/ocrmypdf/_exec/unpaper.py -> build/lib/ocrmypdf/_exec 2024-04-24 18:00:24,147 root INFO copying src/ocrmypdf/_exec/pngquant.py -> build/lib/ocrmypdf/_exec 2024-04-24 18:00:24,148 root INFO copying src/ocrmypdf/_exec/__init__.py -> build/lib/ocrmypdf/_exec 2024-04-24 18:00:24,149 root INFO copying src/ocrmypdf/_exec/ghostscript.py -> build/lib/ocrmypdf/_exec 2024-04-24 18:00:24,151 root INFO creating build/lib/ocrmypdf/pdfinfo 2024-04-24 18:00:24,152 root INFO copying src/ocrmypdf/pdfinfo/__init__.py -> build/lib/ocrmypdf/pdfinfo 2024-04-24 18:00:24,153 root INFO copying src/ocrmypdf/pdfinfo/info.py -> build/lib/ocrmypdf/pdfinfo 2024-04-24 18:00:24,154 root INFO copying src/ocrmypdf/pdfinfo/layout.py -> build/lib/ocrmypdf/pdfinfo 2024-04-24 18:00:24,156 root INFO creating build/lib/ocrmypdf/extra_plugins 2024-04-24 18:00:24,157 root INFO copying src/ocrmypdf/extra_plugins/__init__.py -> build/lib/ocrmypdf/extra_plugins 2024-04-24 18:00:24,158 root INFO copying src/ocrmypdf/extra_plugins/semfree.py -> build/lib/ocrmypdf/extra_plugins 2024-04-24 18:00:24,159 root INFO creating build/lib/ocrmypdf/builtin_plugins 2024-04-24 18:00:24,160 root INFO copying src/ocrmypdf/builtin_plugins/default_filters.py -> build/lib/ocrmypdf/builtin_plugins 2024-04-24 18:00:24,161 root INFO copying src/ocrmypdf/builtin_plugins/concurrency.py -> build/lib/ocrmypdf/builtin_plugins 2024-04-24 18:00:24,162 root INFO copying src/ocrmypdf/builtin_plugins/tesseract_ocr.py -> build/lib/ocrmypdf/builtin_plugins 2024-04-24 18:00:24,164 root INFO copying src/ocrmypdf/builtin_plugins/__init__.py -> build/lib/ocrmypdf/builtin_plugins 2024-04-24 18:00:24,165 root INFO copying src/ocrmypdf/builtin_plugins/optimize.py -> build/lib/ocrmypdf/builtin_plugins 2024-04-24 18:00:24,166 root INFO copying src/ocrmypdf/builtin_plugins/ghostscript.py -> build/lib/ocrmypdf/builtin_plugins 2024-04-24 18:00:24,167 root INFO creating build/lib/ocrmypdf/_pipelines 2024-04-24 18:00:24,168 root INFO copying src/ocrmypdf/_pipelines/_common.py -> build/lib/ocrmypdf/_pipelines 2024-04-24 18:00:24,169 root INFO copying src/ocrmypdf/_pipelines/hocr_to_ocr_pdf.py -> build/lib/ocrmypdf/_pipelines 2024-04-24 18:00:24,170 root INFO copying src/ocrmypdf/_pipelines/__init__.py -> build/lib/ocrmypdf/_pipelines 2024-04-24 18:00:24,171 root INFO copying src/ocrmypdf/_pipelines/ocr.py -> build/lib/ocrmypdf/_pipelines 2024-04-24 18:00:24,172 root INFO copying src/ocrmypdf/_pipelines/pdf_to_hocr.py -> build/lib/ocrmypdf/_pipelines 2024-04-24 18:00:24,173 root INFO running egg_info 2024-04-24 18:00:24,191 root INFO writing src/ocrmypdf.egg-info/PKG-INFO 2024-04-24 18:00:24,206 root INFO writing dependency_links to src/ocrmypdf.egg-info/dependency_links.txt 2024-04-24 18:00:24,208 root INFO writing entry points to src/ocrmypdf.egg-info/entry_points.txt 2024-04-24 18:00:24,215 root INFO writing requirements to src/ocrmypdf.egg-info/requires.txt 2024-04-24 18:00:24,216 root INFO writing top-level names to src/ocrmypdf.egg-info/top_level.txt 2024-04-24 18:00:31,880 root INFO reading manifest file 'src/ocrmypdf.egg-info/SOURCES.txt' 2024-04-24 18:00:31,895 root INFO adding license file 'LICENSE' 2024-04-24 18:00:31,918 root INFO writing manifest file 'src/ocrmypdf.egg-info/SOURCES.txt' 2024-04-24 18:00:31,940 root INFO copying src/ocrmypdf/RELEASE.md -> build/lib/ocrmypdf 2024-04-24 18:00:31,942 root INFO copying src/ocrmypdf/py.typed -> build/lib/ocrmypdf 2024-04-24 18:00:31,943 root INFO copying src/ocrmypdf/data/sRGB.icc -> build/lib/ocrmypdf/data 2024-04-24 18:00:31,944 root INFO copying src/ocrmypdf/data/pdf.ttf -> build/lib/ocrmypdf/data 2024-04-24 18:00:31,983 wheel INFO installing to build/bdist.linux-riscv64/wheel 2024-04-24 18:00:31,984 root INFO running install 2024-04-24 18:00:32,028 root INFO running install_lib 2024-04-24 18:00:32,046 root INFO creating build/bdist.linux-riscv64 2024-04-24 18:00:32,046 root INFO creating build/bdist.linux-riscv64/wheel 2024-04-24 18:00:32,047 root INFO creating build/bdist.linux-riscv64/wheel/ocrmypdf 2024-04-24 18:00:32,048 root INFO creating build/bdist.linux-riscv64/wheel/ocrmypdf/data 2024-04-24 18:00:32,048 root INFO copying build/lib/ocrmypdf/data/pdf.ttf -> build/bdist.linux-riscv64/wheel/ocrmypdf/data 2024-04-24 18:00:32,049 root INFO copying build/lib/ocrmypdf/data/__init__.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/data 2024-04-24 18:00:32,050 root INFO copying build/lib/ocrmypdf/data/sRGB.icc -> build/bdist.linux-riscv64/wheel/ocrmypdf/data 2024-04-24 18:00:32,051 root INFO copying build/lib/ocrmypdf/pluginspec.py -> build/bdist.linux-riscv64/wheel/ocrmypdf 2024-04-24 18:00:32,052 root INFO copying build/lib/ocrmypdf/_concurrent.py -> build/bdist.linux-riscv64/wheel/ocrmypdf 2024-04-24 18:00:32,053 root INFO creating build/bdist.linux-riscv64/wheel/ocrmypdf/subprocess 2024-04-24 18:00:32,054 root INFO copying build/lib/ocrmypdf/subprocess/_windows.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/subprocess 2024-04-24 18:00:32,055 root INFO copying build/lib/ocrmypdf/subprocess/__init__.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/subprocess 2024-04-24 18:00:32,056 root INFO creating build/bdist.linux-riscv64/wheel/ocrmypdf/hocrtransform 2024-04-24 18:00:32,056 root INFO copying build/lib/ocrmypdf/hocrtransform/_hocr.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/hocrtransform 2024-04-24 18:00:32,057 root INFO copying build/lib/ocrmypdf/hocrtransform/__main__.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/hocrtransform 2024-04-24 18:00:32,058 root INFO copying build/lib/ocrmypdf/hocrtransform/_font.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/hocrtransform 2024-04-24 18:00:32,059 root INFO copying build/lib/ocrmypdf/hocrtransform/__init__.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/hocrtransform 2024-04-24 18:00:32,060 root INFO creating build/bdist.linux-riscv64/wheel/ocrmypdf/_exec 2024-04-24 18:00:32,061 root INFO copying build/lib/ocrmypdf/_exec/jbig2enc.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/_exec 2024-04-24 18:00:32,061 root INFO copying build/lib/ocrmypdf/_exec/tesseract.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/_exec 2024-04-24 18:00:32,062 root INFO copying build/lib/ocrmypdf/_exec/unpaper.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/_exec 2024-04-24 18:00:32,063 root INFO copying build/lib/ocrmypdf/_exec/pngquant.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/_exec 2024-04-24 18:00:32,064 root INFO copying build/lib/ocrmypdf/_exec/__init__.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/_exec 2024-04-24 18:00:32,065 root INFO copying build/lib/ocrmypdf/_exec/ghostscript.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/_exec 2024-04-24 18:00:32,066 root INFO copying build/lib/ocrmypdf/_jobcontext.py -> build/bdist.linux-riscv64/wheel/ocrmypdf 2024-04-24 18:00:32,067 root INFO copying build/lib/ocrmypdf/quality.py -> build/bdist.linux-riscv64/wheel/ocrmypdf 2024-04-24 18:00:32,067 root INFO copying build/lib/ocrmypdf/_graft.py -> build/bdist.linux-riscv64/wheel/ocrmypdf 2024-04-24 18:00:32,068 root INFO copying build/lib/ocrmypdf/__main__.py -> build/bdist.linux-riscv64/wheel/ocrmypdf 2024-04-24 18:00:32,069 root INFO copying build/lib/ocrmypdf/imageops.py -> build/bdist.linux-riscv64/wheel/ocrmypdf 2024-04-24 18:00:32,070 root INFO creating build/bdist.linux-riscv64/wheel/ocrmypdf/pdfinfo 2024-04-24 18:00:32,071 root INFO copying build/lib/ocrmypdf/pdfinfo/__init__.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/pdfinfo 2024-04-24 18:00:32,072 root INFO copying build/lib/ocrmypdf/pdfinfo/info.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/pdfinfo 2024-04-24 18:00:32,073 root INFO copying build/lib/ocrmypdf/pdfinfo/layout.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/pdfinfo 2024-04-24 18:00:32,074 root INFO copying build/lib/ocrmypdf/languages.py -> build/bdist.linux-riscv64/wheel/ocrmypdf 2024-04-24 18:00:32,075 root INFO copying build/lib/ocrmypdf/cli.py -> build/bdist.linux-riscv64/wheel/ocrmypdf 2024-04-24 18:00:32,076 root INFO copying build/lib/ocrmypdf/helpers.py -> build/bdist.linux-riscv64/wheel/ocrmypdf 2024-04-24 18:00:32,077 root INFO copying build/lib/ocrmypdf/py.typed -> build/bdist.linux-riscv64/wheel/ocrmypdf 2024-04-24 18:00:32,078 root INFO creating build/bdist.linux-riscv64/wheel/ocrmypdf/extra_plugins 2024-04-24 18:00:32,079 root INFO copying build/lib/ocrmypdf/extra_plugins/__init__.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/extra_plugins 2024-04-24 18:00:32,080 root INFO copying build/lib/ocrmypdf/extra_plugins/semfree.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/extra_plugins 2024-04-24 18:00:32,081 root INFO copying build/lib/ocrmypdf/_pipeline.py -> build/bdist.linux-riscv64/wheel/ocrmypdf 2024-04-24 18:00:32,082 root INFO copying build/lib/ocrmypdf/_progressbar.py -> build/bdist.linux-riscv64/wheel/ocrmypdf 2024-04-24 18:00:32,083 root INFO copying build/lib/ocrmypdf/_logging.py -> build/bdist.linux-riscv64/wheel/ocrmypdf 2024-04-24 18:00:32,084 root INFO copying build/lib/ocrmypdf/_version.py -> build/bdist.linux-riscv64/wheel/ocrmypdf 2024-04-24 18:00:32,084 root INFO copying build/lib/ocrmypdf/_plugin_manager.py -> build/bdist.linux-riscv64/wheel/ocrmypdf 2024-04-24 18:00:32,085 root INFO copying build/lib/ocrmypdf/__init__.py -> build/bdist.linux-riscv64/wheel/ocrmypdf 2024-04-24 18:00:32,086 root INFO copying build/lib/ocrmypdf/optimize.py -> build/bdist.linux-riscv64/wheel/ocrmypdf 2024-04-24 18:00:32,087 root INFO copying build/lib/ocrmypdf/_validation.py -> build/bdist.linux-riscv64/wheel/ocrmypdf 2024-04-24 18:00:32,088 root INFO creating build/bdist.linux-riscv64/wheel/ocrmypdf/builtin_plugins 2024-04-24 18:00:32,089 root INFO copying build/lib/ocrmypdf/builtin_plugins/default_filters.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/builtin_plugins 2024-04-24 18:00:32,090 root INFO copying build/lib/ocrmypdf/builtin_plugins/concurrency.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/builtin_plugins 2024-04-24 18:00:32,091 root INFO copying build/lib/ocrmypdf/builtin_plugins/tesseract_ocr.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/builtin_plugins 2024-04-24 18:00:32,092 root INFO copying build/lib/ocrmypdf/builtin_plugins/__init__.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/builtin_plugins 2024-04-24 18:00:32,093 root INFO copying build/lib/ocrmypdf/builtin_plugins/optimize.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/builtin_plugins 2024-04-24 18:00:32,093 root INFO copying build/lib/ocrmypdf/builtin_plugins/ghostscript.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/builtin_plugins 2024-04-24 18:00:32,094 root INFO copying build/lib/ocrmypdf/api.py -> build/bdist.linux-riscv64/wheel/ocrmypdf 2024-04-24 18:00:32,095 root INFO copying build/lib/ocrmypdf/_metadata.py -> build/bdist.linux-riscv64/wheel/ocrmypdf 2024-04-24 18:00:32,096 root INFO copying build/lib/ocrmypdf/RELEASE.md -> build/bdist.linux-riscv64/wheel/ocrmypdf 2024-04-24 18:00:32,097 root INFO copying build/lib/ocrmypdf/exceptions.py -> build/bdist.linux-riscv64/wheel/ocrmypdf 2024-04-24 18:00:32,098 root INFO copying build/lib/ocrmypdf/pdfa.py -> build/bdist.linux-riscv64/wheel/ocrmypdf 2024-04-24 18:00:32,099 root INFO creating build/bdist.linux-riscv64/wheel/ocrmypdf/_pipelines 2024-04-24 18:00:32,099 root INFO copying build/lib/ocrmypdf/_pipelines/_common.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/_pipelines 2024-04-24 18:00:32,100 root INFO copying build/lib/ocrmypdf/_pipelines/hocr_to_ocr_pdf.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/_pipelines 2024-04-24 18:00:32,101 root INFO copying build/lib/ocrmypdf/_pipelines/__init__.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/_pipelines 2024-04-24 18:00:32,102 root INFO copying build/lib/ocrmypdf/_pipelines/ocr.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/_pipelines 2024-04-24 18:00:32,103 root INFO copying build/lib/ocrmypdf/_pipelines/pdf_to_hocr.py -> build/bdist.linux-riscv64/wheel/ocrmypdf/_pipelines 2024-04-24 18:00:32,104 root INFO running install_egg_info 2024-04-24 18:00:32,121 root INFO Copying src/ocrmypdf.egg-info to build/bdist.linux-riscv64/wheel/ocrmypdf-16.1.1-py3.12.egg-info 2024-04-24 18:00:32,125 root INFO running install_scripts 2024-04-24 18:00:32,146 wheel INFO creating build/bdist.linux-riscv64/wheel/ocrmypdf-16.1.1.dist-info/WHEEL 2024-04-24 18:00:32,148 wheel INFO creating '/home/buildozer/aports/community/ocrmypdf/src/ocrmypdf-16.1.1/.dist/.tmp-ub0rj1fz/ocrmypdf-16.1.1-py310-none-any.whl' and adding 'build/bdist.linux-riscv64/wheel' to it 2024-04-24 18:00:32,149 wheel INFO adding 'ocrmypdf/RELEASE.md' 2024-04-24 18:00:32,150 wheel INFO adding 'ocrmypdf/__init__.py' 2024-04-24 18:00:32,151 wheel INFO adding 'ocrmypdf/__main__.py' 2024-04-24 18:00:32,152 wheel INFO adding 'ocrmypdf/_concurrent.py' 2024-04-24 18:00:32,153 wheel INFO adding 'ocrmypdf/_graft.py' 2024-04-24 18:00:32,154 wheel INFO adding 'ocrmypdf/_jobcontext.py' 2024-04-24 18:00:32,155 wheel INFO adding 'ocrmypdf/_logging.py' 2024-04-24 18:00:32,156 wheel INFO adding 'ocrmypdf/_metadata.py' 2024-04-24 18:00:32,158 wheel INFO adding 'ocrmypdf/_pipeline.py' 2024-04-24 18:00:32,159 wheel INFO adding 'ocrmypdf/_plugin_manager.py' 2024-04-24 18:00:32,160 wheel INFO adding 'ocrmypdf/_progressbar.py' 2024-04-24 18:00:32,162 wheel INFO adding 'ocrmypdf/_validation.py' 2024-04-24 18:00:32,163 wheel INFO adding 'ocrmypdf/_version.py' 2024-04-24 18:00:32,164 wheel INFO adding 'ocrmypdf/api.py' 2024-04-24 18:00:32,165 wheel INFO adding 'ocrmypdf/cli.py' 2024-04-24 18:00:32,166 wheel INFO adding 'ocrmypdf/exceptions.py' 2024-04-24 18:00:32,167 wheel INFO adding 'ocrmypdf/helpers.py' 2024-04-24 18:00:32,169 wheel INFO adding 'ocrmypdf/imageops.py' 2024-04-24 18:00:32,170 wheel INFO adding 'ocrmypdf/languages.py' 2024-04-24 18:00:32,172 wheel INFO adding 'ocrmypdf/optimize.py' 2024-04-24 18:00:32,174 wheel INFO adding 'ocrmypdf/pdfa.py' 2024-04-24 18:00:32,175 wheel INFO adding 'ocrmypdf/pluginspec.py' 2024-04-24 18:00:32,176 wheel INFO adding 'ocrmypdf/py.typed' 2024-04-24 18:00:32,177 wheel INFO adding 'ocrmypdf/quality.py' 2024-04-24 18:00:32,178 wheel INFO adding 'ocrmypdf/_exec/__init__.py' 2024-04-24 18:00:32,179 wheel INFO adding 'ocrmypdf/_exec/ghostscript.py' 2024-04-24 18:00:32,181 wheel INFO adding 'ocrmypdf/_exec/jbig2enc.py' 2024-04-24 18:00:32,181 wheel INFO adding 'ocrmypdf/_exec/pngquant.py' 2024-04-24 18:00:32,182 wheel INFO adding 'ocrmypdf/_exec/tesseract.py' 2024-04-24 18:00:32,184 wheel INFO adding 'ocrmypdf/_exec/unpaper.py' 2024-04-24 18:00:32,185 wheel INFO adding 'ocrmypdf/_pipelines/__init__.py' 2024-04-24 18:00:32,186 wheel INFO adding 'ocrmypdf/_pipelines/_common.py' 2024-04-24 18:00:32,187 wheel INFO adding 'ocrmypdf/_pipelines/hocr_to_ocr_pdf.py' 2024-04-24 18:00:32,188 wheel INFO adding 'ocrmypdf/_pipelines/ocr.py' 2024-04-24 18:00:32,189 wheel INFO adding 'ocrmypdf/_pipelines/pdf_to_hocr.py' 2024-04-24 18:00:32,191 wheel INFO adding 'ocrmypdf/builtin_plugins/__init__.py' 2024-04-24 18:00:32,192 wheel INFO adding 'ocrmypdf/builtin_plugins/concurrency.py' 2024-04-24 18:00:32,193 wheel INFO adding 'ocrmypdf/builtin_plugins/default_filters.py' 2024-04-24 18:00:32,194 wheel INFO adding 'ocrmypdf/builtin_plugins/ghostscript.py' 2024-04-24 18:00:32,195 wheel INFO adding 'ocrmypdf/builtin_plugins/optimize.py' 2024-04-24 18:00:32,197 wheel INFO adding 'ocrmypdf/builtin_plugins/tesseract_ocr.py' 2024-04-24 18:00:32,198 wheel INFO adding 'ocrmypdf/data/__init__.py' 2024-04-24 18:00:32,199 wheel INFO adding 'ocrmypdf/data/pdf.ttf' 2024-04-24 18:00:32,200 wheel INFO adding 'ocrmypdf/data/sRGB.icc' 2024-04-24 18:00:32,201 wheel INFO adding 'ocrmypdf/extra_plugins/__init__.py' 2024-04-24 18:00:32,202 wheel INFO adding 'ocrmypdf/extra_plugins/semfree.py' 2024-04-24 18:00:32,204 wheel INFO adding 'ocrmypdf/hocrtransform/__init__.py' 2024-04-24 18:00:32,205 wheel INFO adding 'ocrmypdf/hocrtransform/__main__.py' 2024-04-24 18:00:32,206 wheel INFO adding 'ocrmypdf/hocrtransform/_font.py' 2024-04-24 18:00:32,207 wheel INFO adding 'ocrmypdf/hocrtransform/_hocr.py' 2024-04-24 18:00:32,208 wheel INFO adding 'ocrmypdf/pdfinfo/__init__.py' 2024-04-24 18:00:32,210 wheel INFO adding 'ocrmypdf/pdfinfo/info.py' 2024-04-24 18:00:32,212 wheel INFO adding 'ocrmypdf/pdfinfo/layout.py' 2024-04-24 18:00:32,213 wheel INFO adding 'ocrmypdf/subprocess/__init__.py' 2024-04-24 18:00:32,214 wheel INFO adding 'ocrmypdf/subprocess/_windows.py' 2024-04-24 18:00:32,217 wheel INFO adding 'ocrmypdf-16.1.1.dist-info/LICENSE' 2024-04-24 18:00:32,218 wheel INFO adding 'ocrmypdf-16.1.1.dist-info/METADATA' 2024-04-24 18:00:32,219 wheel INFO adding 'ocrmypdf-16.1.1.dist-info/WHEEL' 2024-04-24 18:00:32,220 wheel INFO adding 'ocrmypdf-16.1.1.dist-info/entry_points.txt' 2024-04-24 18:00:32,220 wheel INFO adding 'ocrmypdf-16.1.1.dist-info/top_level.txt' 2024-04-24 18:00:32,221 wheel INFO adding 'ocrmypdf-16.1.1.dist-info/RECORD' 2024-04-24 18:00:32,223 wheel INFO removing build/bdist.linux-riscv64/wheel 2024-04-24 18:00:32,232 gpep517 INFO The backend produced .dist/ocrmypdf-16.1.1-py310-none-any.whl ocrmypdf-16.1.1-py310-none-any.whl ============================= test session starts ============================== platform linux -- Python 3.12.3, pytest-8.1.1, pluggy-1.4.0 rootdir: /home/buildozer/aports/community/ocrmypdf/src/ocrmypdf-16.1.1 configfile: pyproject.toml testpaths: tests plugins: hypothesis-6.99.4, cov-5.0.0, xdist-3.5.0 created: 64/64 workers 64 workers [370 items] ...s.....ssss........ss........x..s..FxFFFFFF.F.s..FFFF..FFF.FFFxs.s.s.. [ 19%] ...s.............................................................x....xs [ 38%] ....ss..........s......sss.s.ss..ss.ssss........s....................... [ 58%] ..........s....s..........s.........ss.....s..s...............x......... [ 77%] ...................s..........................s.............s........... [ 97%] .......s.. [100%] =================================== FAILURES =================================== ____________________________ test_digital_signature ____________________________ [gw2] linux -- Python 3.12.3 /usr/bin/python3 digitally_signed = PosixPath('/tmp/pytest-of-buildozer/pytest-390/popen-gw2/test_digital_signature0/acroform_signed.pdf') no_outpdf = PosixPath('/tmp/pytest-of-buildozer/pytest-390/popen-gw2/test_digital_signature0/no_output.pdf') def test_digital_signature(digitally_signed, no_outpdf): with pytest.raises(ocrmypdf.exceptions.DigitalSignatureError): > check_ocrmypdf(digitally_signed, no_outpdf) tests/test_acroform.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:93: in check_ocrmypdf api.check_options(options, plugin_manager) src/ocrmypdf/_validation.py:238: in check_options _check_plugin_options(options, plugin_manager) src/ocrmypdf/_validation.py:232: in _check_plugin_options ocr_engine_languages = plugin_manager.hook.get_ocr_engine().languages(options) src/ocrmypdf/builtin_plugins/tesseract_ocr.py:231: in languages return tesseract.get_languages() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def get_languages() -> set[str]: def lang_error(output): msg = ( "Tesseract failed to report available languages.\n" "Output from Tesseract:\n" "-----------\n" ) msg += output return msg args_tess = ['tesseract', '--list-langs'] try: proc = run( args_tess, text=True, stdout=PIPE, stderr=STDOUT, logs_errors_to_stdout=True, check=True, ) output = proc.stdout except CalledProcessError as e: raise MissingDependencyError(lang_error(e.output)) from e for line in output.splitlines(): if line.startswith('Error'): > raise MissingDependencyError(lang_error(output)) E ocrmypdf.exceptions.MissingDependencyError: Tesseract failed to report available languages. E Output from Tesseract: E ----------- E [DS] Profile file not available (tesseract_opencl_profile_devices.dat); performing profiling. E E [DS] Device: "(null)" (Native) evaluation... E Error in pixCloseBrick: pixs not 1 bpp E Error in pixOpenBrick: pixs not defined E Error in pixSubtract: pixs1 not defined E Error in pixOpenBrick: pixs not defined E Error in pixOpenBrick: pixs not defined E [DS] Device: "(null)" (Native) evaluated E [DS] composeRGBPixel: 0.055655 (w=1.2) E [DS] HistogramRect: 0.132953 (w=2.4) E [DS] ThresholdRectToPix: 0.123800 (w=4.5) E [DS] getLineMasksMorph: 0.000453 (w=5.0) E [DS] Score: 0.945241 E [DS] Scores written to file (tesseract_opencl_profile_devices.dat). E [DS] Device[1] 0:(null) score is 0.945241 E [DS] Selected Device[1]: "(null)" (Native) E List of available languages in "/usr/share/tessdata/" (2): E eng E osd src/ocrmypdf/_exec/tesseract.py:132: MissingDependencyError ______________________________ test_img2pdf_fails ______________________________ [gw21] linux -- Python 3.12.3 /usr/bin/python3 resources = PosixPath('/home/buildozer/aports/community/ocrmypdf/src/ocrmypdf-16.1.1/tests/resources') no_outpdf = PosixPath('/tmp/pytest-of-buildozer/pytest-390/popen-gw21/test_img2pdf_fails0/no_output.pdf') def test_img2pdf_fails(resources, no_outpdf): with patch( 'ocrmypdf._pipeline.img2pdf.convert', side_effect=img2pdf.ImageOpenError() ) as mock: > rc = run_ocrmypdf_api( resources / 'baiona_gray.png', no_outpdf, '--image-dpi', '200' ) tests/test_image_input.py:68: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:118: in run_ocrmypdf_api api.check_options(options, plugin_manager) src/ocrmypdf/_validation.py:238: in check_options _check_plugin_options(options, plugin_manager) src/ocrmypdf/_validation.py:232: in _check_plugin_options ocr_engine_languages = plugin_manager.hook.get_ocr_engine().languages(options) src/ocrmypdf/builtin_plugins/tesseract_ocr.py:231: in languages return tesseract.get_languages() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def get_languages() -> set[str]: def lang_error(output): msg = ( "Tesseract failed to report available languages.\n" "Output from Tesseract:\n" "-----------\n" ) msg += output return msg args_tess = ['tesseract', '--list-langs'] try: proc = run( args_tess, text=True, stdout=PIPE, stderr=STDOUT, logs_errors_to_stdout=True, check=True, ) output = proc.stdout except CalledProcessError as e: raise MissingDependencyError(lang_error(e.output)) from e for line in output.splitlines(): if line.startswith('Error'): > raise MissingDependencyError(lang_error(output)) E ocrmypdf.exceptions.MissingDependencyError: Tesseract failed to report available languages. E Output from Tesseract: E ----------- E [DS] Profile file not available (tesseract_opencl_profile_devices.dat); performing profiling. E E [DS] Device: "(null)" (Native) evaluation... E Error in pixCloseBrick: pixs not 1 bpp E Error in pixOpenBrick: pixs not defined E Error in pixSubtract: pixs1 not defined E Error in pixOpenBrick: pixs not defined E Error in pixOpenBrick: pixs not defined E [DS] Device: "(null)" (Native) evaluated E [DS] composeRGBPixel: 0.064799 (w=1.2) E [DS] HistogramRect: 0.215133 (w=2.4) E [DS] ThresholdRectToPix: 0.127254 (w=4.5) E [DS] getLineMasksMorph: 0.000271 (w=5.0) E [DS] Score: 1.168078 E [DS] Scores written to file (tesseract_opencl_profile_devices.dat). E [DS] Device[1] 0:(null) score is 1.168078 E [DS] Selected Device[1]: "(null)" (Native) E List of available languages in "/usr/share/tessdata/" (2): E eng E osd src/ocrmypdf/_exec/tesseract.py:132: MissingDependencyError __________________________ test_input_file_not_a_pdf ___________________________ [gw37] linux -- Python 3.12.3 /usr/bin/python3 caplog = <_pytest.logging.LogCaptureFixture object at 0x3f99e9b500> no_outpdf = PosixPath('/tmp/pytest-of-buildozer/pytest-390/popen-gw37/test_input_file_not_a_pdf0/no_output.pdf') def test_input_file_not_a_pdf(caplog, no_outpdf): input_file = __file__ # Try to OCR this file > result = run_ocrmypdf_api(input_file, no_outpdf) tests/test_main.py:290: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:118: in run_ocrmypdf_api api.check_options(options, plugin_manager) src/ocrmypdf/_validation.py:238: in check_options _check_plugin_options(options, plugin_manager) src/ocrmypdf/_validation.py:232: in _check_plugin_options ocr_engine_languages = plugin_manager.hook.get_ocr_engine().languages(options) src/ocrmypdf/builtin_plugins/tesseract_ocr.py:231: in languages return tesseract.get_languages() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def get_languages() -> set[str]: def lang_error(output): msg = ( "Tesseract failed to report available languages.\n" "Output from Tesseract:\n" "-----------\n" ) msg += output return msg args_tess = ['tesseract', '--list-langs'] try: proc = run( args_tess, text=True, stdout=PIPE, stderr=STDOUT, logs_errors_to_stdout=True, check=True, ) output = proc.stdout except CalledProcessError as e: raise MissingDependencyError(lang_error(e.output)) from e for line in output.splitlines(): if line.startswith('Error'): > raise MissingDependencyError(lang_error(output)) E ocrmypdf.exceptions.MissingDependencyError: Tesseract failed to report available languages. E Output from Tesseract: E ----------- E [DS] Profile file not available (tesseract_opencl_profile_devices.dat); performing profiling. E E [DS] Device: "(null)" (Native) evaluation... E Error in pixCloseBrick: pixs not 1 bpp E Error in pixOpenBrick: pixs not defined E Error in pixSubtract: pixs1 not defined E Error in pixOpenBrick: pixs not defined E Error in pixOpenBrick: pixs not defined E [DS] Device: "(null)" (Native) evaluated E [DS] composeRGBPixel: 0.070029 (w=1.2) E [DS] HistogramRect: 0.143591 (w=2.4) E [DS] ThresholdRectToPix: 0.120390 (w=4.5) E [DS] getLineMasksMorph: 0.000312 (w=5.0) E [DS] Score: 0.971969 E [DS] Scores written to file (tesseract_opencl_profile_devices.dat). E [DS] Device[1] 0:(null) score is 0.971969 E [DS] Selected Device[1]: "(null)" (Native) E List of available languages in "/usr/share/tessdata/" (2): E eng E osd src/ocrmypdf/_exec/tesseract.py:132: MissingDependencyError _____________________________ test_blank_input_pdf _____________________________ [gw33] linux -- Python 3.12.3 /usr/bin/python3 resources = PosixPath('/home/buildozer/aports/community/ocrmypdf/src/ocrmypdf-16.1.1/tests/resources') outpdf = PosixPath('/tmp/pytest-of-buildozer/pytest-390/popen-gw33/test_blank_input_pdf0/out.pdf') def test_blank_input_pdf(resources, outpdf): > result = run_ocrmypdf_api(resources / 'blank.pdf', outpdf) tests/test_main.py:197: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:118: in run_ocrmypdf_api api.check_options(options, plugin_manager) src/ocrmypdf/_validation.py:238: in check_options _check_plugin_options(options, plugin_manager) src/ocrmypdf/_validation.py:232: in _check_plugin_options ocr_engine_languages = plugin_manager.hook.get_ocr_engine().languages(options) src/ocrmypdf/builtin_plugins/tesseract_ocr.py:231: in languages return tesseract.get_languages() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def get_languages() -> set[str]: def lang_error(output): msg = ( "Tesseract failed to report available languages.\n" "Output from Tesseract:\n" "-----------\n" ) msg += output return msg args_tess = ['tesseract', '--list-langs'] try: proc = run( args_tess, text=True, stdout=PIPE, stderr=STDOUT, logs_errors_to_stdout=True, check=True, ) output = proc.stdout except CalledProcessError as e: raise MissingDependencyError(lang_error(e.output)) from e for line in output.splitlines(): if line.startswith('Error'): > raise MissingDependencyError(lang_error(output)) E ocrmypdf.exceptions.MissingDependencyError: Tesseract failed to report available languages. E Output from Tesseract: E ----------- E [DS] Profile file not available (tesseract_opencl_profile_devices.dat); performing profiling. E E [DS] Device: "(null)" (Native) evaluation... E Error in pixCloseBrick: pixs not 1 bpp E Error in pixOpenBrick: pixs not defined E Error in pixSubtract: pixs1 not defined E Error in pixOpenBrick: pixs not defined E Error in pixOpenBrick: pixs not defined E [DS] Device: "(null)" (Native) evaluated E [DS] composeRGBPixel: 0.075653 (w=1.2) E [DS] HistogramRect: 0.164785 (w=2.4) E [DS] ThresholdRectToPix: 0.122967 (w=4.5) E [DS] getLineMasksMorph: 0.000358 (w=5.0) E [DS] Score: 1.041407 E [DS] Scores written to file (tesseract_opencl_profile_devices.dat). E [DS] Device[1] 0:(null) score is 1.041407 E [DS] Selected Device[1]: "(null)" (Native) E List of available languages in "/usr/share/tessdata/" (2): E eng E osd src/ocrmypdf/_exec/tesseract.py:132: MissingDependencyError __________________________________ test_links __________________________________ [gw12] linux -- Python 3.12.3 /usr/bin/python3 resources = PosixPath('/home/buildozer/aports/community/ocrmypdf/src/ocrmypdf-16.1.1/tests/resources') outpdf = PosixPath('/tmp/pytest-of-buildozer/pytest-390/popen-gw12/test_links0/out.pdf') def test_links(resources, outpdf): > ocrmypdf.ocr( resources / 'link.pdf', outpdf, redo_ocr=True, oversample=200, output_type='pdf' ) tests/test_graft.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/ocrmypdf/api.py:374: in ocr check_options(options, plugin_manager) src/ocrmypdf/_validation.py:238: in check_options _check_plugin_options(options, plugin_manager) src/ocrmypdf/_validation.py:232: in _check_plugin_options ocr_engine_languages = plugin_manager.hook.get_ocr_engine().languages(options) src/ocrmypdf/builtin_plugins/tesseract_ocr.py:231: in languages return tesseract.get_languages() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def get_languages() -> set[str]: def lang_error(output): msg = ( "Tesseract failed to report available languages.\n" "Output from Tesseract:\n" "-----------\n" ) msg += output return msg args_tess = ['tesseract', '--list-langs'] try: proc = run( args_tess, text=True, stdout=PIPE, stderr=STDOUT, logs_errors_to_stdout=True, check=True, ) output = proc.stdout except CalledProcessError as e: raise MissingDependencyError(lang_error(e.output)) from e for line in output.splitlines(): if line.startswith('Error'): > raise MissingDependencyError(lang_error(output)) E ocrmypdf.exceptions.MissingDependencyError: Tesseract failed to report available languages. E Output from Tesseract: E ----------- E [DS] Profile file not available (tesseract_opencl_profile_devices.dat); performing profiling. E E [DS] Device: "(null)" (Native) evaluation... E Error in pixCloseBrick: pixs not 1 bpp E Error in pixOpenBrick: pixs not defined E Error in pixSubtract: pixs1 not defined E Error in pixOpenBrick: pixs not defined E Error in pixOpenBrick: pixs not defined E [DS] Device: "(null)" (Native) evaluated E [DS] composeRGBPixel: 0.065203 (w=1.2) E [DS] HistogramRect: 0.191283 (w=2.4) E [DS] ThresholdRectToPix: 0.137612 (w=4.5) E [DS] getLineMasksMorph: 0.000686 (w=5.0) E [DS] Score: 1.160005 E [DS] Scores written to file (tesseract_opencl_profile_devices.dat). E [DS] Device[1] 0:(null) score is 1.160005 E [DS] Selected Device[1]: "(null)" (Native) E List of available languages in "/usr/share/tessdata/" (2): E eng E osd src/ocrmypdf/_exec/tesseract.py:132: MissingDependencyError _______________________________ test_repeat_ocr ________________________________ [gw25] linux -- Python 3.12.3 /usr/bin/python3 resources = PosixPath('/home/buildozer/aports/community/ocrmypdf/src/ocrmypdf-16.1.1/tests/resources') no_outpdf = PosixPath('/tmp/pytest-of-buildozer/pytest-390/popen-gw25/test_repeat_ocr0/no_output.pdf') def test_repeat_ocr(resources, no_outpdf): > result = run_ocrmypdf_api(resources / 'graph_ocred.pdf', no_outpdf) tests/test_main.py:68: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:118: in run_ocrmypdf_api api.check_options(options, plugin_manager) src/ocrmypdf/_validation.py:238: in check_options _check_plugin_options(options, plugin_manager) src/ocrmypdf/_validation.py:232: in _check_plugin_options ocr_engine_languages = plugin_manager.hook.get_ocr_engine().languages(options) src/ocrmypdf/builtin_plugins/tesseract_ocr.py:231: in languages return tesseract.get_languages() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def get_languages() -> set[str]: def lang_error(output): msg = ( "Tesseract failed to report available languages.\n" "Output from Tesseract:\n" "-----------\n" ) msg += output return msg args_tess = ['tesseract', '--list-langs'] try: proc = run( args_tess, text=True, stdout=PIPE, stderr=STDOUT, logs_errors_to_stdout=True, check=True, ) output = proc.stdout except CalledProcessError as e: raise MissingDependencyError(lang_error(e.output)) from e for line in output.splitlines(): if line.startswith('Error'): > raise MissingDependencyError(lang_error(output)) E ocrmypdf.exceptions.MissingDependencyError: Tesseract failed to report available languages. E Output from Tesseract: E ----------- E [DS] Profile file not available (tesseract_opencl_profile_devices.dat); performing profiling. E E [DS] Device: "(null)" (Native) evaluation... E Error in pixCloseBrick: pixs not 1 bpp E Error in pixOpenBrick: pixs not defined E Error in pixSubtract: pixs1 not defined E Error in pixOpenBrick: pixs not defined E Error in pixOpenBrick: pixs not defined E [DS] Device: "(null)" (Native) evaluated E [DS] composeRGBPixel: 0.080750 (w=1.2) E [DS] HistogramRect: 0.179934 (w=2.4) E [DS] ThresholdRectToPix: 0.133910 (w=4.5) E [DS] getLineMasksMorph: 0.000424 (w=5.0) E [DS] Score: 1.133457 E [DS] Scores written to file (tesseract_opencl_profile_devices.dat). E [DS] Device[1] 0:(null) score is 1.133457 E [DS] Selected Device[1]: "(null)" (Native) E List of available languages in "/usr/share/tessdata/" (2): E eng E osd src/ocrmypdf/_exec/tesseract.py:132: MissingDependencyError __________________________ test_input_file_not_found ___________________________ [gw36] linux -- Python 3.12.3 /usr/bin/python3 caplog = <_pytest.logging.LogCaptureFixture object at 0x3fad8a2720> no_outpdf = PosixPath('/tmp/pytest-of-buildozer/pytest-390/popen-gw36/test_input_file_not_found0/no_output.pdf') def test_input_file_not_found(caplog, no_outpdf): input_file = "does not exist.pdf" > result = run_ocrmypdf_api(input_file, no_outpdf) tests/test_main.py:273: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:118: in run_ocrmypdf_api api.check_options(options, plugin_manager) src/ocrmypdf/_validation.py:238: in check_options _check_plugin_options(options, plugin_manager) src/ocrmypdf/_validation.py:232: in _check_plugin_options ocr_engine_languages = plugin_manager.hook.get_ocr_engine().languages(options) src/ocrmypdf/builtin_plugins/tesseract_ocr.py:231: in languages return tesseract.get_languages() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def get_languages() -> set[str]: def lang_error(output): msg = ( "Tesseract failed to report available languages.\n" "Output from Tesseract:\n" "-----------\n" ) msg += output return msg args_tess = ['tesseract', '--list-langs'] try: proc = run( args_tess, text=True, stdout=PIPE, stderr=STDOUT, logs_errors_to_stdout=True, check=True, ) output = proc.stdout except CalledProcessError as e: raise MissingDependencyError(lang_error(e.output)) from e for line in output.splitlines(): if line.startswith('Error'): > raise MissingDependencyError(lang_error(output)) E ocrmypdf.exceptions.MissingDependencyError: Tesseract failed to report available languages. E Output from Tesseract: E ----------- E [DS] Profile file not available (tesseract_opencl_profile_devices.dat); performing profiling. E E [DS] Device: "(null)" (Native) evaluation... E Error in pixCloseBrick: pixs not 1 bpp E Error in pixOpenBrick: pixs not defined E Error in pixSubtract: pixs1 not defined E Error in pixOpenBrick: pixs not defined E Error in pixOpenBrick: pixs not defined E [DS] Device: "(null)" (Native) evaluated E [DS] composeRGBPixel: 0.079975 (w=1.2) E [DS] HistogramRect: 0.152317 (w=2.4) E [DS] ThresholdRectToPix: 0.119275 (w=4.5) E [DS] getLineMasksMorph: 0.000340 (w=5.0) E [DS] Score: 0.999970 E [DS] Scores written to file (tesseract_opencl_profile_devices.dat). E [DS] Device[1] 0:(null) score is 0.999970 E [DS] Selected Device[1]: "(null)" (Native) E List of available languages in "/usr/share/tessdata/" (2): E eng E osd src/ocrmypdf/_exec/tesseract.py:132: MissingDependencyError _________________________ test_tesseract_config_valid __________________________ [gw48] linux -- Python 3.12.3 /usr/bin/python3 resources = PosixPath('/home/buildozer/aports/community/ocrmypdf/src/ocrmypdf-16.1.1/tests/resources') valid_tess_config = PosixPath('/tmp/pytest-of-buildozer/pytest-390/popen-gw48/test_tesseract_config_valid0/test.cfg') outpdf = PosixPath('/tmp/pytest-of-buildozer/pytest-390/popen-gw48/test_tesseract_config_valid0/out.pdf') def test_tesseract_config_valid(resources, valid_tess_config, outpdf): > check_ocrmypdf( resources / '3small.pdf', outpdf, '--tesseract-config', valid_tess_config, '--pages', '1', ) tests/test_main.py:522: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:93: in check_ocrmypdf api.check_options(options, plugin_manager) src/ocrmypdf/_validation.py:238: in check_options _check_plugin_options(options, plugin_manager) src/ocrmypdf/_validation.py:232: in _check_plugin_options ocr_engine_languages = plugin_manager.hook.get_ocr_engine().languages(options) src/ocrmypdf/builtin_plugins/tesseract_ocr.py:231: in languages return tesseract.get_languages() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def get_languages() -> set[str]: def lang_error(output): msg = ( "Tesseract failed to report available languages.\n" "Output from Tesseract:\n" "-----------\n" ) msg += output return msg args_tess = ['tesseract', '--list-langs'] try: proc = run( args_tess, text=True, stdout=PIPE, stderr=STDOUT, logs_errors_to_stdout=True, check=True, ) output = proc.stdout except CalledProcessError as e: raise MissingDependencyError(lang_error(e.output)) from e for line in output.splitlines(): if line.startswith('Error'): > raise MissingDependencyError(lang_error(output)) E ocrmypdf.exceptions.MissingDependencyError: Tesseract failed to report available languages. E Output from Tesseract: E ----------- E [DS] Profile file not available (tesseract_opencl_profile_devices.dat); performing profiling. E E [DS] Device: "(null)" (Native) evaluation... E Error in pixCloseBrick: pixs not 1 bpp E Error in pixOpenBrick: pixs not defined E Error in pixSubtract: pixs1 not defined E Error in pixOpenBrick: pixs not defined E Error in pixOpenBrick: pixs not defined E [DS] Device: "(null)" (Native) evaluated E [DS] composeRGBPixel: 0.061421 (w=1.2) E [DS] HistogramRect: 0.137221 (w=2.4) E [DS] ThresholdRectToPix: 0.124175 (w=4.5) E [DS] getLineMasksMorph: 0.000350 (w=5.0) E [DS] Score: 0.963576 E [DS] Scores written to file (tesseract_opencl_profile_devices.dat). E [DS] Device[1] 0:(null) score is 0.963576 E [DS] Selected Device[1]: "(null)" (Native) E List of available languages in "/usr/share/tessdata/" (2): E eng E osd src/ocrmypdf/_exec/tesseract.py:132: MissingDependencyError ________________________________ test_pdfa_n[3] ________________________________ [gw61] linux -- Python 3.12.3 /usr/bin/python3 pdfa_level = '3' resources = PosixPath('/home/buildozer/aports/community/ocrmypdf/src/ocrmypdf-16.1.1/tests/resources') outpdf = PosixPath('/tmp/pytest-of-buildozer/pytest-390/popen-gw61/test_pdfa_n_3_0/out.pdf') @pytest.mark.parametrize('pdfa_level', ['1', '2', '3']) def test_pdfa_n(pdfa_level, resources, outpdf): > check_ocrmypdf( resources / 'ccitt.pdf', outpdf, '--output-type', 'pdfa-' + pdfa_level, '--plugin', 'tests/plugins/tesseract_cache.py', ) tests/test_main.py:794: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:93: in check_ocrmypdf api.check_options(options, plugin_manager) src/ocrmypdf/_validation.py:238: in check_options _check_plugin_options(options, plugin_manager) src/ocrmypdf/_validation.py:232: in _check_plugin_options ocr_engine_languages = plugin_manager.hook.get_ocr_engine().languages(options) src/ocrmypdf/builtin_plugins/tesseract_ocr.py:231: in languages return tesseract.get_languages() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def get_languages() -> set[str]: def lang_error(output): msg = ( "Tesseract failed to report available languages.\n" "Output from Tesseract:\n" "-----------\n" ) msg += output return msg args_tess = ['tesseract', '--list-langs'] try: proc = run( args_tess, text=True, stdout=PIPE, stderr=STDOUT, logs_errors_to_stdout=True, check=True, ) output = proc.stdout except CalledProcessError as e: raise MissingDependencyError(lang_error(e.output)) from e for line in output.splitlines(): if line.startswith('Error'): > raise MissingDependencyError(lang_error(output)) E ocrmypdf.exceptions.MissingDependencyError: Tesseract failed to report available languages. E Output from Tesseract: E ----------- E [DS] Profile file not available (tesseract_opencl_profile_devices.dat); performing profiling. E E [DS] Device: "(null)" (Native) evaluation... E Error in pixCloseBrick: pixs not 1 bpp E Error in pixOpenBrick: pixs not defined E Error in pixSubtract: pixs1 not defined E Error in pixOpenBrick: pixs not defined E Error in pixOpenBrick: pixs not defined E [DS] Device: "(null)" (Native) evaluated E [DS] composeRGBPixel: 0.057244 (w=1.2) E [DS] HistogramRect: 0.154541 (w=2.4) E [DS] ThresholdRectToPix: 0.126153 (w=4.5) E [DS] getLineMasksMorph: 0.000461 (w=5.0) E [DS] Score: 1.009584 E [DS] Scores written to file (tesseract_opencl_profile_devices.dat). E [DS] Device[1] 0:(null) score is 1.009584 E [DS] Selected Device[1]: "(null)" (Native) E List of available languages in "/usr/share/tessdata/" (2): E eng E osd src/ocrmypdf/_exec/tesseract.py:132: MissingDependencyError ____________________________ test_oversample[hocr] _____________________________ [gw26] linux -- Python 3.12.3 /usr/bin/python3 renderer = 'hocr' resources = PosixPath('/home/buildozer/aports/community/ocrmypdf/src/ocrmypdf-16.1.1/tests/resources') outpdf = PosixPath('/tmp/pytest-of-buildozer/pytest-390/popen-gw26/test_oversample_hocr_0/out.pdf') @pytest.mark.parametrize('renderer', RENDERERS) def test_oversample(renderer, resources, outpdf): > oversampled_pdf = check_ocrmypdf( resources / 'skew.pdf', outpdf, '--oversample', '350', '-f', '--pdf-renderer', renderer, '--plugin', 'tests/plugins/tesseract_cache.py', ) tests/test_main.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:93: in check_ocrmypdf api.check_options(options, plugin_manager) src/ocrmypdf/_validation.py:238: in check_options _check_plugin_options(options, plugin_manager) src/ocrmypdf/_validation.py:232: in _check_plugin_options ocr_engine_languages = plugin_manager.hook.get_ocr_engine().languages(options) src/ocrmypdf/builtin_plugins/tesseract_ocr.py:231: in languages return tesseract.get_languages() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def get_languages() -> set[str]: def lang_error(output): msg = ( "Tesseract failed to report available languages.\n" "Output from Tesseract:\n" "-----------\n" ) msg += output return msg args_tess = ['tesseract', '--list-langs'] try: proc = run( args_tess, text=True, stdout=PIPE, stderr=STDOUT, logs_errors_to_stdout=True, check=True, ) output = proc.stdout except CalledProcessError as e: raise MissingDependencyError(lang_error(e.output)) from e for line in output.splitlines(): if line.startswith('Error'): > raise MissingDependencyError(lang_error(output)) E ocrmypdf.exceptions.MissingDependencyError: Tesseract failed to report available languages. E Output from Tesseract: E ----------- E [DS] Profile file not available (tesseract_opencl_profile_devices.dat); performing profiling. E E [DS] Device: "(null)" (Native) evaluation... E Error in pixCloseBrick: pixs not 1 bpp E Error in pixOpenBrick: pixs not defined E Error in pixSubtract: pixs1 not defined E Error in pixOpenBrick: pixs not defined E Error in pixOpenBrick: pixs not defined E [DS] Device: "(null)" (Native) evaluated E [DS] composeRGBPixel: 0.072988 (w=1.2) E [DS] HistogramRect: 0.159234 (w=2.4) E [DS] ThresholdRectToPix: 0.124003 (w=4.5) E [DS] getLineMasksMorph: 0.000402 (w=5.0) E [DS] Score: 1.029774 E [DS] Scores written to file (tesseract_opencl_profile_devices.dat). E [DS] Device[1] 0:(null) score is 1.029774 E [DS] Selected Device[1]: "(null)" (Native) E List of available languages in "/usr/share/tessdata/" (2): E eng E osd src/ocrmypdf/_exec/tesseract.py:132: MissingDependencyError ____________________________ test_jbig2_passthrough ____________________________ [gw47] linux -- Python 3.12.3 /usr/bin/python3 resources = PosixPath('/home/buildozer/aports/community/ocrmypdf/src/ocrmypdf-16.1.1/tests/resources') outpdf = PosixPath('/tmp/pytest-of-buildozer/pytest-390/popen-gw47/test_jbig2_passthrough0/out.pdf') def test_jbig2_passthrough(resources, outpdf): > out = check_ocrmypdf( resources / 'jbig2.pdf', outpdf, '--output-type', 'pdf', '--pdf-renderer', 'hocr', '--plugin', 'tests/plugins/tesseract_cache.py', ) tests/test_main.py:432: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:93: in check_ocrmypdf api.check_options(options, plugin_manager) src/ocrmypdf/_validation.py:238: in check_options _check_plugin_options(options, plugin_manager) src/ocrmypdf/_validation.py:232: in _check_plugin_options ocr_engine_languages = plugin_manager.hook.get_ocr_engine().languages(options) src/ocrmypdf/builtin_plugins/tesseract_ocr.py:231: in languages return tesseract.get_languages() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def get_languages() -> set[str]: def lang_error(output): msg = ( "Tesseract failed to report available languages.\n" "Output from Tesseract:\n" "-----------\n" ) msg += output return msg args_tess = ['tesseract', '--list-langs'] try: proc = run( args_tess, text=True, stdout=PIPE, stderr=STDOUT, logs_errors_to_stdout=True, check=True, ) output = proc.stdout except CalledProcessError as e: raise MissingDependencyError(lang_error(e.output)) from e for line in output.splitlines(): if line.startswith('Error'): > raise MissingDependencyError(lang_error(output)) E ocrmypdf.exceptions.MissingDependencyError: Tesseract failed to report available languages. E Output from Tesseract: E ----------- E [DS] Profile file not available (tesseract_opencl_profile_devices.dat); performing profiling. E E [DS] Device: "(null)" (Native) evaluation... E Error in pixCloseBrick: pixs not 1 bpp E Error in pixOpenBrick: pixs not defined E Error in pixSubtract: pixs1 not defined E Error in pixOpenBrick: pixs not defined E Error in pixOpenBrick: pixs not defined E [DS] Device: "(null)" (Native) evaluated E [DS] composeRGBPixel: 0.059102 (w=1.2) E [DS] HistogramRect: 0.182100 (w=2.4) E [DS] ThresholdRectToPix: 0.121261 (w=4.5) E [DS] getLineMasksMorph: 0.000387 (w=5.0) E [DS] Score: 1.055575 E [DS] Scores written to file (tesseract_opencl_profile_devices.dat). E [DS] Device[1] 0:(null) score is 1.055575 E [DS] Selected Device[1]: "(null)" (Native) E List of available languages in "/usr/share/tessdata/" (2): E eng E osd src/ocrmypdf/_exec/tesseract.py:132: MissingDependencyError __________________________ test_pagesegmode[sandwich] __________________________ [gw38] linux -- Python 3.12.3 /usr/bin/python3 renderer = 'sandwich' resources = PosixPath('/home/buildozer/aports/community/ocrmypdf/src/ocrmypdf-16.1.1/tests/resources') outpdf = PosixPath('/tmp/pytest-of-buildozer/pytest-390/popen-gw38/test_pagesegmode_sandwich_0/out.pdf') @pytest.mark.parametrize('renderer', RENDERERS) def test_pagesegmode(renderer, resources, outpdf): > check_ocrmypdf( resources / 'skew.pdf', outpdf, '--tesseract-pagesegmode', '7', '-v', '1', '--pdf-renderer', renderer, '--plugin', 'tests/plugins/tesseract_cache.py', ) tests/test_main.py:298: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:93: in check_ocrmypdf api.check_options(options, plugin_manager) src/ocrmypdf/_validation.py:238: in check_options _check_plugin_options(options, plugin_manager) src/ocrmypdf/_validation.py:232: in _check_plugin_options ocr_engine_languages = plugin_manager.hook.get_ocr_engine().languages(options) src/ocrmypdf/builtin_plugins/tesseract_ocr.py:231: in languages return tesseract.get_languages() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def get_languages() -> set[str]: def lang_error(output): msg = ( "Tesseract failed to report available languages.\n" "Output from Tesseract:\n" "-----------\n" ) msg += output return msg args_tess = ['tesseract', '--list-langs'] try: proc = run( args_tess, text=True, stdout=PIPE, stderr=STDOUT, logs_errors_to_stdout=True, check=True, ) output = proc.stdout except CalledProcessError as e: raise MissingDependencyError(lang_error(e.output)) from e for line in output.splitlines(): if line.startswith('Error'): > raise MissingDependencyError(lang_error(output)) E ocrmypdf.exceptions.MissingDependencyError: Tesseract failed to report available languages. E Output from Tesseract: E ----------- E [DS] Profile file not available (tesseract_opencl_profile_devices.dat); performing profiling. E E [DS] Device: "(null)" (Native) evaluation... E Error in pixCloseBrick: pixs not 1 bpp E Error in pixOpenBrick: pixs not defined E Error in pixSubtract: pixs1 not defined E Error in pixOpenBrick: pixs not defined E Error in pixOpenBrick: pixs not defined E [DS] Device: "(null)" (Native) evaluated E [DS] composeRGBPixel: 0.066888 (w=1.2) E [DS] HistogramRect: 0.147855 (w=2.4) E [DS] ThresholdRectToPix: 0.129886 (w=4.5) E [DS] getLineMasksMorph: 0.000319 (w=5.0) E [DS] Score: 1.021200 E [DS] Scores written to file (tesseract_opencl_profile_devices.dat). E [DS] Device[1] 0:(null) score is 1.021200 E [DS] Selected Device[1]: "(null)" (Native) E List of available languages in "/usr/share/tessdata/" (2): E eng E osd src/ocrmypdf/_exec/tesseract.py:132: MissingDependencyError ________________________________ test_skip_ocr _________________________________ [gw28] linux -- Python 3.12.3 /usr/bin/python3 resources = PosixPath('/home/buildozer/aports/community/ocrmypdf/src/ocrmypdf-16.1.1/tests/resources') outpdf = PosixPath('/tmp/pytest-of-buildozer/pytest-390/popen-gw28/test_skip_ocr0/out.pdf') def test_skip_ocr(resources, outpdf): > out = check_ocrmypdf( resources / 'graph_ocred.pdf', outpdf, '-s', '--plugin', 'tests/plugins/tesseract_cache.py', ) tests/test_main.py:85: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:93: in check_ocrmypdf api.check_options(options, plugin_manager) src/ocrmypdf/_validation.py:238: in check_options _check_plugin_options(options, plugin_manager) src/ocrmypdf/_validation.py:232: in _check_plugin_options ocr_engine_languages = plugin_manager.hook.get_ocr_engine().languages(options) src/ocrmypdf/builtin_plugins/tesseract_ocr.py:231: in languages return tesseract.get_languages() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def get_languages() -> set[str]: def lang_error(output): msg = ( "Tesseract failed to report available languages.\n" "Output from Tesseract:\n" "-----------\n" ) msg += output return msg args_tess = ['tesseract', '--list-langs'] try: proc = run( args_tess, text=True, stdout=PIPE, stderr=STDOUT, logs_errors_to_stdout=True, check=True, ) output = proc.stdout except CalledProcessError as e: raise MissingDependencyError(lang_error(e.output)) from e for line in output.splitlines(): if line.startswith('Error'): > raise MissingDependencyError(lang_error(output)) E ocrmypdf.exceptions.MissingDependencyError: Tesseract failed to report available languages. E Output from Tesseract: E ----------- E [DS] Profile file not available (tesseract_opencl_profile_devices.dat); performing profiling. E E [DS] Device: "(null)" (Native) evaluation... E Error in pixCloseBrick: pixs not 1 bpp E Error in pixOpenBrick: pixs not defined E Error in pixSubtract: pixs1 not defined E Error in pixOpenBrick: pixs not defined E Error in pixOpenBrick: pixs not defined E [DS] Device: "(null)" (Native) evaluated E [DS] composeRGBPixel: 0.065964 (w=1.2) E [DS] HistogramRect: 0.181291 (w=2.4) E [DS] ThresholdRectToPix: 0.127760 (w=4.5) E [DS] getLineMasksMorph: 0.000271 (w=5.0) E [DS] Score: 1.090534 E [DS] Scores written to file (tesseract_opencl_profile_devices.dat). E [DS] Device[1] 0:(null) score is 1.090534 E [DS] Selected Device[1]: "(null)" (Native) E List of available languages in "/usr/share/tessdata/" (2): E eng E osd src/ocrmypdf/_exec/tesseract.py:132: MissingDependencyError __________________________ test_ocr_timeout[sandwich] __________________________ [gw29] linux -- Python 3.12.3 /usr/bin/python3 renderer = 'sandwich' resources = PosixPath('/home/buildozer/aports/community/ocrmypdf/src/ocrmypdf-16.1.1/tests/resources') outpdf = PosixPath('/tmp/pytest-of-buildozer/pytest-390/popen-gw29/test_ocr_timeout_sandwich_0/out.pdf') @pytest.mark.parametrize('renderer', RENDERERS) def test_ocr_timeout(renderer, resources, outpdf): > out = check_ocrmypdf( resources / 'skew.pdf', outpdf, '--tesseract-timeout', '0', '--pdf-renderer', renderer, ) tests/test_main.py:129: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:93: in check_ocrmypdf api.check_options(options, plugin_manager) src/ocrmypdf/_validation.py:238: in check_options _check_plugin_options(options, plugin_manager) src/ocrmypdf/_validation.py:232: in _check_plugin_options ocr_engine_languages = plugin_manager.hook.get_ocr_engine().languages(options) src/ocrmypdf/builtin_plugins/tesseract_ocr.py:231: in languages return tesseract.get_languages() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def get_languages() -> set[str]: def lang_error(output): msg = ( "Tesseract failed to report available languages.\n" "Output from Tesseract:\n" "-----------\n" ) msg += output return msg args_tess = ['tesseract', '--list-langs'] try: proc = run( args_tess, text=True, stdout=PIPE, stderr=STDOUT, logs_errors_to_stdout=True, check=True, ) output = proc.stdout except CalledProcessError as e: raise MissingDependencyError(lang_error(e.output)) from e for line in output.splitlines(): if line.startswith('Error'): > raise MissingDependencyError(lang_error(output)) E ocrmypdf.exceptions.MissingDependencyError: Tesseract failed to report available languages. E Output from Tesseract: E ----------- E [DS] Profile file not available (tesseract_opencl_profile_devices.dat); performing profiling. E E [DS] Device: "(null)" (Native) evaluation... E Error in pixCloseBrick: pixs not 1 bpp E Error in pixOpenBrick: pixs not defined E Error in pixSubtract: pixs1 not defined E Error in pixOpenBrick: pixs not defined E Error in pixOpenBrick: pixs not defined E [DS] Device: "(null)" (Native) evaluated E [DS] composeRGBPixel: 0.080316 (w=1.2) E [DS] HistogramRect: 0.166993 (w=2.4) E [DS] ThresholdRectToPix: 0.124614 (w=4.5) E [DS] getLineMasksMorph: 0.000313 (w=5.0) E [DS] Score: 1.059495 E [DS] Scores written to file (tesseract_opencl_profile_devices.dat). E [DS] Device[1] 0:(null) score is 1.059495 E [DS] Selected Device[1]: "(null)" (Native) E List of available languages in "/usr/share/tessdata/" (2): E eng E osd src/ocrmypdf/_exec/tesseract.py:132: MissingDependencyError ______________________ test_tesseract_thresholding[auto] _______________________ [gw39] linux -- Python 3.12.3 /usr/bin/python3 value = 'auto' resources = PosixPath('/home/buildozer/aports/community/ocrmypdf/src/ocrmypdf-16.1.1/tests/resources') outpdf = PosixPath('/tmp/pytest-of-buildozer/pytest-390/popen-gw39/test_tesseract_thresholding_au0/out.pdf') @pytest.mark.parametrize('value', ['auto', 'otsu', 'adaptive-otsu', 'sauvola']) def test_tesseract_thresholding(value, resources, outpdf): > check_ocrmypdf( resources / 'trivial.pdf', outpdf, '--tesseract-thresholding', value, '--plugin', 'tests/plugins/tesseract_cache.py', ) tests/test_main.py:325: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:93: in check_ocrmypdf api.check_options(options, plugin_manager) src/ocrmypdf/_validation.py:238: in check_options _check_plugin_options(options, plugin_manager) src/ocrmypdf/_validation.py:232: in _check_plugin_options ocr_engine_languages = plugin_manager.hook.get_ocr_engine().languages(options) src/ocrmypdf/builtin_plugins/tesseract_ocr.py:231: in languages return tesseract.get_languages() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def get_languages() -> set[str]: def lang_error(output): msg = ( "Tesseract failed to report available languages.\n" "Output from Tesseract:\n" "-----------\n" ) msg += output return msg args_tess = ['tesseract', '--list-langs'] try: proc = run( args_tess, text=True, stdout=PIPE, stderr=STDOUT, logs_errors_to_stdout=True, check=True, ) output = proc.stdout except CalledProcessError as e: raise MissingDependencyError(lang_error(e.output)) from e for line in output.splitlines(): if line.startswith('Error'): > raise MissingDependencyError(lang_error(output)) E ocrmypdf.exceptions.MissingDependencyError: Tesseract failed to report available languages. E Output from Tesseract: E ----------- E [DS] Profile file not available (tesseract_opencl_profile_devices.dat); performing profiling. E E [DS] Device: "(null)" (Native) evaluation... E Error in pixCloseBrick: pixs not 1 bpp E Error in pixOpenBrick: pixs not defined E Error in pixSubtract: pixs1 not defined E Error in pixOpenBrick: pixs not defined E Error in pixOpenBrick: pixs not defined E [DS] Device: "(null)" (Native) evaluated E [DS] composeRGBPixel: 0.056361 (w=1.2) E [DS] HistogramRect: 0.166206 (w=2.4) E [DS] ThresholdRectToPix: 0.118298 (w=4.5) E [DS] getLineMasksMorph: 0.000290 (w=5.0) E [DS] Score: 1.000317 E [DS] Scores written to file (tesseract_opencl_profile_devices.dat). E [DS] Device[1] 0:(null) score is 1.000317 E [DS] Selected Device[1]: "(null)" (Native) E List of available languages in "/usr/share/tessdata/" (2): E eng E osd src/ocrmypdf/_exec/tesseract.py:132: MissingDependencyError ________________________________ test_pdfa_n[1] ________________________________ [gw58] linux -- Python 3.12.3 /usr/bin/python3 pdfa_level = '1' resources = PosixPath('/home/buildozer/aports/community/ocrmypdf/src/ocrmypdf-16.1.1/tests/resources') outpdf = PosixPath('/tmp/pytest-of-buildozer/pytest-390/popen-gw58/test_pdfa_n_1_0/out.pdf') @pytest.mark.parametrize('pdfa_level', ['1', '2', '3']) def test_pdfa_n(pdfa_level, resources, outpdf): > check_ocrmypdf( resources / 'ccitt.pdf', outpdf, '--output-type', 'pdfa-' + pdfa_level, '--plugin', 'tests/plugins/tesseract_cache.py', ) tests/test_main.py:794: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:93: in check_ocrmypdf api.check_options(options, plugin_manager) src/ocrmypdf/_validation.py:238: in check_options _check_plugin_options(options, plugin_manager) src/ocrmypdf/_validation.py:232: in _check_plugin_options ocr_engine_languages = plugin_manager.hook.get_ocr_engine().languages(options) src/ocrmypdf/builtin_plugins/tesseract_ocr.py:231: in languages return tesseract.get_languages() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def get_languages() -> set[str]: def lang_error(output): msg = ( "Tesseract failed to report available languages.\n" "Output from Tesseract:\n" "-----------\n" ) msg += output return msg args_tess = ['tesseract', '--list-langs'] try: proc = run( args_tess, text=True, stdout=PIPE, stderr=STDOUT, logs_errors_to_stdout=True, check=True, ) output = proc.stdout except CalledProcessError as e: raise MissingDependencyError(lang_error(e.output)) from e for line in output.splitlines(): if line.startswith('Error'): > raise MissingDependencyError(lang_error(output)) E ocrmypdf.exceptions.MissingDependencyError: Tesseract failed to report available languages. E Output from Tesseract: E ----------- E [DS] Profile file not available (tesseract_opencl_profile_devices.dat); performing profiling. E E [DS] Device: "(null)" (Native) evaluation... E Error in pixCloseBrick: pixs not 1 bpp E Error in pixOpenBrick: pixs not defined E Error in pixSubtract: pixs1 not defined E Error in pixOpenBrick: pixs not defined E Error in pixOpenBrick: pixs not defined E [DS] Device: "(null)" (Native) evaluated E [DS] composeRGBPixel: 0.054824 (w=1.2) E [DS] HistogramRect: 0.142870 (w=2.4) E [DS] ThresholdRectToPix: 0.123297 (w=4.5) E [DS] getLineMasksMorph: 0.000309 (w=5.0) E [DS] Score: 0.965053 E [DS] Scores written to file (tesseract_opencl_profile_devices.dat). E [DS] Device[1] 0:(null) score is 0.965053 E [DS] Selected Device[1]: "(null)" (Native) E List of available languages in "/usr/share/tessdata/" (2): E eng E osd src/ocrmypdf/_exec/tesseract.py:132: MissingDependencyError ____________________________ test_sidecar_pagecount ____________________________ [gw57] linux -- Python 3.12.3 /usr/bin/python3 resources = PosixPath('/home/buildozer/aports/community/ocrmypdf/src/ocrmypdf-16.1.1/tests/resources') outpdf = PosixPath('/tmp/pytest-of-buildozer/pytest-390/popen-gw57/test_sidecar_pagecount0/out.pdf') def test_sidecar_pagecount(resources, outpdf): sidecar = outpdf.with_suffix('.txt') > check_ocrmypdf( resources / '3small.pdf', outpdf, '--skip-text', '--sidecar', sidecar, '--plugin', 'tests/plugins/tesseract_cache.py', ) tests/test_main.py:753: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:93: in check_ocrmypdf api.check_options(options, plugin_manager) src/ocrmypdf/_validation.py:238: in check_options _check_plugin_options(options, plugin_manager) src/ocrmypdf/_validation.py:232: in _check_plugin_options ocr_engine_languages = plugin_manager.hook.get_ocr_engine().languages(options) src/ocrmypdf/builtin_plugins/tesseract_ocr.py:231: in languages return tesseract.get_languages() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def get_languages() -> set[str]: def lang_error(output): msg = ( "Tesseract failed to report available languages.\n" "Output from Tesseract:\n" "-----------\n" ) msg += output return msg args_tess = ['tesseract', '--list-langs'] try: proc = run( args_tess, text=True, stdout=PIPE, stderr=STDOUT, logs_errors_to_stdout=True, check=True, ) output = proc.stdout except CalledProcessError as e: raise MissingDependencyError(lang_error(e.output)) from e for line in output.splitlines(): if line.startswith('Error'): > raise MissingDependencyError(lang_error(output)) E ocrmypdf.exceptions.MissingDependencyError: Tesseract failed to report available languages. E Output from Tesseract: E ----------- E [DS] Profile file not available (tesseract_opencl_profile_devices.dat); performing profiling. E E [DS] Device: "(null)" (Native) evaluation... E Error in pixCloseBrick: pixs not 1 bpp E Error in pixOpenBrick: pixs not defined E Error in pixSubtract: pixs1 not defined E Error in pixOpenBrick: pixs not defined E Error in pixOpenBrick: pixs not defined E [DS] Device: "(null)" (Native) evaluated E [DS] composeRGBPixel: 0.065053 (w=1.2) E [DS] HistogramRect: 0.145700 (w=2.4) E [DS] ThresholdRectToPix: 0.118953 (w=4.5) E [DS] getLineMasksMorph: 0.000296 (w=5.0) E [DS] Score: 0.964513 E [DS] Scores written to file (tesseract_opencl_profile_devices.dat). E [DS] Device[1] 0:(null) score is 0.964513 E [DS] Selected Device[1]: "(null)" (Native) E List of available languages in "/usr/share/tessdata/" (2): E eng E osd src/ocrmypdf/_exec/tesseract.py:132: MissingDependencyError ________________________ test_tesseract_crash[sandwich] ________________________ [gw42] linux -- Python 3.12.3 /usr/bin/python3 renderer = 'sandwich' resources = PosixPath('/home/buildozer/aports/community/ocrmypdf/src/ocrmypdf-16.1.1/tests/resources') no_outpdf = PosixPath('/tmp/pytest-of-buildozer/pytest-390/popen-gw42/test_tesseract_crash_sandwich_0/no_output.pdf') caplog = <_pytest.logging.LogCaptureFixture object at 0x3fae83c650> @pytest.mark.parametrize('renderer', RENDERERS) def test_tesseract_crash(renderer, resources, no_outpdf, caplog): > exitcode = run_ocrmypdf_api( resources / 'ccitt.pdf', no_outpdf, '-v', '1', '--pdf-renderer', renderer, '--plugin', 'tests/plugins/tesseract_crash.py', ) tests/test_main.py:350: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:118: in run_ocrmypdf_api api.check_options(options, plugin_manager) src/ocrmypdf/_validation.py:238: in check_options _check_plugin_options(options, plugin_manager) src/ocrmypdf/_validation.py:232: in _check_plugin_options ocr_engine_languages = plugin_manager.hook.get_ocr_engine().languages(options) src/ocrmypdf/builtin_plugins/tesseract_ocr.py:231: in languages return tesseract.get_languages() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def get_languages() -> set[str]: def lang_error(output): msg = ( "Tesseract failed to report available languages.\n" "Output from Tesseract:\n" "-----------\n" ) msg += output return msg args_tess = ['tesseract', '--list-langs'] try: proc = run( args_tess, text=True, stdout=PIPE, stderr=STDOUT, logs_errors_to_stdout=True, check=True, ) output = proc.stdout except CalledProcessError as e: raise MissingDependencyError(lang_error(e.output)) from e for line in output.splitlines(): if line.startswith('Error'): > raise MissingDependencyError(lang_error(output)) E ocrmypdf.exceptions.MissingDependencyError: Tesseract failed to report available languages. E Output from Tesseract: E ----------- E [DS] Profile file not available (tesseract_opencl_profile_devices.dat); performing profiling. E E [DS] Device: "(null)" (Native) evaluation... E Error in pixCloseBrick: pixs not 1 bpp E Error in pixOpenBrick: pixs not defined E Error in pixSubtract: pixs1 not defined E Error in pixOpenBrick: pixs not defined E Error in pixOpenBrick: pixs not defined E [DS] Device: "(null)" (Native) evaluated E [DS] composeRGBPixel: 0.067857 (w=1.2) E [DS] HistogramRect: 0.194509 (w=2.4) E [DS] ThresholdRectToPix: 0.121429 (w=4.5) E [DS] getLineMasksMorph: 0.000282 (w=5.0) E [DS] Score: 1.096092 E [DS] Scores written to file (tesseract_opencl_profile_devices.dat). E [DS] Device[1] 0:(null) score is 1.096092 E [DS] Selected Device[1]: "(null)" (Native) E List of available languages in "/usr/share/tessdata/" (2): E eng E osd src/ocrmypdf/_exec/tesseract.py:132: MissingDependencyError =============================== warnings summary =============================== :530: 64 warnings :530: DeprecationWarning: the load_module() method is deprecated and slated for removal in Python 3.12; use exec_module() instead tests/test_semfree.py: 10 warnings /usr/lib/python3.12/multiprocessing/popen_fork.py:66: DeprecationWarning: This process (pid=3486) is multi-threaded, use of fork() may lead to deadlocks in the child. self.pid = os.fork() -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test_acroform.py::test_digital_signature - ocrmypdf.exceptions.M... FAILED tests/test_image_input.py::test_img2pdf_fails - ocrmypdf.exceptions.Mi... FAILED tests/test_main.py::test_input_file_not_a_pdf - ocrmypdf.exceptions.Mi... FAILED tests/test_main.py::test_blank_input_pdf - ocrmypdf.exceptions.Missing... FAILED tests/test_graft.py::test_links - ocrmypdf.exceptions.MissingDependenc... FAILED tests/test_main.py::test_repeat_ocr - ocrmypdf.exceptions.MissingDepen... FAILED tests/test_main.py::test_input_file_not_found - ocrmypdf.exceptions.Mi... FAILED tests/test_main.py::test_tesseract_config_valid - ocrmypdf.exceptions.... FAILED tests/test_main.py::test_pdfa_n[3] - ocrmypdf.exceptions.MissingDepend... FAILED tests/test_main.py::test_oversample[hocr] - ocrmypdf.exceptions.Missin... FAILED tests/test_main.py::test_jbig2_passthrough - ocrmypdf.exceptions.Missi... FAILED tests/test_main.py::test_pagesegmode[sandwich] - ocrmypdf.exceptions.M... FAILED tests/test_main.py::test_skip_ocr - ocrmypdf.exceptions.MissingDepende... FAILED tests/test_main.py::test_ocr_timeout[sandwich] - ocrmypdf.exceptions.M... FAILED tests/test_main.py::test_tesseract_thresholding[auto] - ocrmypdf.excep... FAILED tests/test_main.py::test_pdfa_n[1] - ocrmypdf.exceptions.MissingDepend... FAILED tests/test_main.py::test_sidecar_pagecount - ocrmypdf.exceptions.Missi... FAILED tests/test_main.py::test_tesseract_crash[sandwich] - ocrmypdf.exceptio... = 18 failed, 305 passed, 41 skipped, 6 xfailed, 74 warnings in 153.54s (0:02:33) = >>> ERROR: ocrmypdf: check failed >>> ocrmypdf: Uninstalling dependencies... (1/189) Purging .makedepends-ocrmypdf (20240424.180013) (2/189) Purging ghostscript (10.02.1-r0) (3/189) Purging jbig2enc (0.29-r4) (4/189) Purging pngquant (3.0.3-r0) (5/189) Purging py3-deprecation-pyc (2.1.0-r7) (6/189) Purging py3-deprecation (2.1.0-r7) (7/189) Purging py3-img2pdf-pyc (0.5.1-r1) (8/189) Purging py3-img2pdf (0.5.1-r1) (9/189) Purging py3-pdfminer-pyc (20231228-r1) (10/189) Purging py3-pdfminer (20231228-r1) (11/189) Purging py3-charset-normalizer-pyc (3.3.2-r1) (12/189) Purging py3-charset-normalizer (3.3.2-r1) (13/189) Purging py3-cryptography-pyc (42.0.5-r1) (14/189) Purging py3-cryptography (42.0.5-r1) (15/189) Purging py3-cffi-pyc (1.16.0-r1) (16/189) Purging py3-cffi (1.16.0-r1) (17/189) Purging py3-cparser-pyc (2.22-r1) (18/189) Purging py3-cparser (2.22-r1) (19/189) Purging py3-pikepdf-pyc (8.14.0-r2) (20/189) Purging py3-pikepdf (8.14.0-r2) (21/189) Purging py3-deprecated-pyc (1.2.14-r3) (22/189) Purging py3-deprecated (1.2.14-r3) (23/189) Purging py3-wrapt-pyc (1.16.0-r1) (24/189) Purging py3-wrapt (1.16.0-r1) (25/189) Purging py3-lxml-pyc (5.1.0-r0) (26/189) Purging py3-lxml (5.1.0-r0) (27/189) Purging py3-reportlab-pyc (3.6.13-r2) (28/189) Purging py3-reportlab (3.6.13-r2) (29/189) Purging py3-pillow-pyc (10.3.0-r2) (30/189) Purging py3-pillow (10.3.0-r2) (31/189) Purging font-dejavu (2.37-r5) (32/189) Purging encodings (1.0.7-r1) (33/189) Purging mkfontscale (1.2.2-r6) (34/189) Purging py3-rich-pyc (13.7.1-r1) (35/189) Purging py3-rich (13.7.1-r1) (36/189) Purging py3-markdown-it-py-pyc (3.0.0-r1) (37/189) Purging py3-markdown-it-py (3.0.0-r1) (38/189) Purging py3-mdurl-pyc (0.1.2-r3) (39/189) Purging py3-mdurl (0.1.2-r3) (40/189) Purging py3-pygments-pyc (2.17.2-r1) (41/189) Purging py3-pygments (2.17.2-r1) (42/189) Purging qpdf (11.9.0-r0) (43/189) Purging unpaper (7.0.0-r1) (44/189) Purging py3-gpep517-pyc (15-r2) (45/189) Purging py3-gpep517 (15-r2) (46/189) Purging py3-installer-pyc (0.7.0-r2) (47/189) Purging py3-installer (0.7.0-r2) (48/189) Purging py3-setuptools_scm-pyc (8.0.4-r2) (49/189) Purging py3-setuptools_scm (8.0.4-r2) (50/189) Purging py3-setuptools-pyc (69.5.1-r0) (51/189) Purging py3-setuptools (69.5.1-r0) (52/189) Purging py3-wheel-pyc (0.42.0-r1) (53/189) Purging py3-wheel (0.42.0-r1) (54/189) Purging py3-hypothesis-pyc (6.99.4-r1) (55/189) Purging py3-hypothesis (6.99.4-r1) (56/189) Purging py3-attrs-pyc (23.2.0-r1) (57/189) Purging py3-attrs (23.2.0-r1) (58/189) Purging py3-sortedcontainers-pyc (2.4.0-r5) (59/189) Purging py3-sortedcontainers (2.4.0-r5) (60/189) Purging py3-pytest-cov-pyc (5.0.0-r0) (61/189) Purging py3-pytest-cov (5.0.0-r0) (62/189) Purging py3-coverage-pyc (6.5.0-r6) (63/189) Purging py3-coverage (6.5.0-r6) (64/189) Purging py3-pytest-xdist-pyc (3.5.0-r1) (65/189) Purging py3-pytest-xdist (3.5.0-r1) (66/189) Purging py3-execnet-pyc (1.9.0-r3) (67/189) Purging py3-execnet (1.9.0-r3) (68/189) Purging py3-apipkg-pyc (2.1.0-r3) (69/189) Purging py3-apipkg (2.1.0-r3) (70/189) Purging py3-pytest-pyc (8.1.1-r1) (71/189) Purging py3-pytest (8.1.1-r1) (72/189) Purging py3-iniconfig-pyc (2.0.0-r1) (73/189) Purging py3-iniconfig (2.0.0-r1) (74/189) Purging py3-packaging-pyc (24.0-r1) (75/189) Purging py3-packaging (24.0-r1) (76/189) Purging py3-parsing-pyc (3.1.2-r1) (77/189) Purging py3-parsing (3.1.2-r1) (78/189) Purging py3-pluggy-pyc (1.4.0-r1) (79/189) Purging py3-pluggy (1.4.0-r1) (80/189) Purging py3-py-pyc (1.11.0-r3) (81/189) Purging py3-py (1.11.0-r3) (82/189) Purging python3-pyc (3.12.3-r1) (83/189) Purging python3-pycache-pyc0 (3.12.3-r1) (84/189) Purging pyc (3.12.3-r1) (85/189) Purging python3 (3.12.3-r1) (86/189) Purging tesseract-ocr-data-eng (5.3.4-r0) (87/189) Purging tesseract-ocr-data-osd (5.3.4-r0) (88/189) Purging tesseract-ocr (5.3.4-r0) (89/189) Purging cups-libs (2.4.7-r3) (90/189) Purging ffmpeg-libavformat (6.1.1-r6) (91/189) Purging gdbm (1.23-r1) (92/189) Purging icu-libs (74.2-r0) (93/189) Purging jbig2dec (0.20-r0) (94/189) Purging leptonica (1.84.1-r0) (95/189) Purging libart-lgpl (2.3.21-r8) (96/189) Purging libbluray (1.3.4-r1) (97/189) Purging libfontenc (1.1.7-r5) (98/189) Purging libimagequant (4.2.2-r0) (99/189) Purging libopenmpt (0.7.6-r0) (100/189) Purging libpanelw (6.4_p20240330-r0) (101/189) Purging librist (0.2.10-r1) (102/189) Purging libsrt (1.5.3-r0) (103/189) Purging libssh (0.10.6-r0) (104/189) Purging libwebpdemux (1.3.2-r0) (105/189) Purging libxslt (1.1.39-r1) (106/189) Purging libzmq (4.3.5-r2) (107/189) Purging mbedtls (3.6.0-r0) (108/189) Purging mpdecimal (4.0.0-r0) (109/189) Purging mpg123-libs (1.32.6-r0) (110/189) Purging opencl (2023.12.14-r0) (111/189) Purging openjpeg (2.5.2-r0) (112/189) Purging pango (1.52.2-r0) Executing pango-1.52.2-r0.pre-deinstall (113/189) Purging qpdf-libs (11.9.0-r0) (114/189) Purging readline (8.2.10-r0) (115/189) Purging sqlite-libs (3.45.3-r0) (116/189) Purging tiff (4.6.0t-r0) (117/189) Purging ffmpeg-libavcodec (6.1.1-r6) (118/189) Purging aom-libs (3.8.2-r0) (119/189) Purging avahi-libs (0.8-r17) (120/189) Purging cairo (1.18.0-r0) (121/189) Purging dbus-libs (1.14.10-r1) (122/189) Purging ffmpeg-libswresample (6.1.1-r6) (123/189) Purging ffmpeg-libavutil (6.1.1-r6) (124/189) Purging libxft (2.3.8-r3) (125/189) Purging fontconfig (2.15.0-r1) (126/189) Purging harfbuzz (8.4.0-r0) (127/189) Purging freetype (2.13.2-r0) (128/189) Purging fribidi (1.0.13-r0) (129/189) Purging libjxl (0.9.1-r0) (130/189) Purging giflib (5.2.2-r0) (131/189) Purging glib (2.80.0-r3) (132/189) Purging gnutls (3.8.3-r0) (133/189) Purging graphite2 (1.3.14-r6) (134/189) Purging libva (2.21.0-r0) (135/189) Purging libdrm (2.4.120-r0) (136/189) Purging libpciaccess (0.18.1-r0) (137/189) Purging hwdata-pci (0.381-r0) (138/189) Purging icu-data-en (74.2-r0) (139/189) Purging openexr-libopenexr (3.1.13-r1) (140/189) Purging imath (3.1.11-r2) (141/189) Purging lame-libs (3.100-r5) (142/189) Purging lcms2 (2.16-r0) (143/189) Purging libmount (2.40-r2) (144/189) Purging libblkid (2.40-r2) (145/189) Purging libvdpau (1.5-r3) (146/189) Purging libxext (1.3.6-r2) (147/189) Purging libxrender (0.9.11-r5) (148/189) Purging libxfixes (6.0.1-r4) (149/189) Purging libx11 (1.8.9-r1) (150/189) Purging libxcb (1.16.1-r0) (151/189) Purging libxdmcp (1.1.5-r1) (152/189) Purging libbsd (0.12.2-r0) (153/189) Purging libbz2 (1.0.8-r6) (154/189) Purging libdav1d (1.4.1-r0) (155/189) Purging libeconf (0.6.2-r0) (156/189) Purging wayland-libs-client (1.22.0-r4) (157/189) Purging p11-kit (0.25.3-r0) (158/189) Purging libffi (3.4.6-r0) (159/189) Purging libgcrypt (1.10.3-r0) (160/189) Purging libgpg-error (1.48-r0) (161/189) Purging libhwy (1.0.7-r0) (162/189) Purging libintl (0.22.5-r0) (163/189) Purging libjpeg-turbo (3.0.2-r0) (164/189) Purging libmd (1.1.0-r0) (165/189) Purging libtheora (1.1.1-r18) (166/189) Purging libvorbis (1.3.7-r2) (167/189) Purging libogg (1.3.5-r5) (168/189) Purging libpng (1.6.43-r0) (169/189) Purging libwebpmux (1.3.2-r0) (170/189) Purging libwebp (1.3.2-r0) (171/189) Purging libsharpyuv (1.3.2-r0) (172/189) Purging libsodium (1.0.19-r0) (173/189) Purging libSvtAv1Enc (2.0.0-r1) (174/189) Purging libtasn1 (4.19.0-r2) (175/189) Purging libvpx (1.14.0-r0) (176/189) Purging libxau (1.0.11-r4) (177/189) Purging libxml2 (2.12.6-r2) (178/189) Purging nettle (3.9.1-r0) (179/189) Purging x265-libs (3.6-r0) (180/189) Purging numactl (2.0.18-r0) (181/189) Purging openexr-libilmthread (3.1.13-r1) (182/189) Purging openexr-libiex (3.1.13-r1) (183/189) Purging opus (1.4-r0) (184/189) Purging pixman (0.43.2-r0) (185/189) Purging rav1e-libs (0.7.1-r0) (186/189) Purging soxr (0.1.3-r7) (187/189) Purging x264-libs (0.164_git20231001-r0) (188/189) Purging xvidcore (1.3.7-r2) (189/189) Purging xz-libs (5.6.1-r3) Executing busybox-1.36.1-r25.trigger OK: 227 MiB in 102 packages