Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923221 - dev-python/pypdf-4.0.1 fails tests
Summary: dev-python/pypdf-4.0.1 fails tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2024-01-29 07:43 UTC by Agostino Sarubbo
Modified: 2024-01-29 12:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,188.56 KB, text/plain)
2024-01-29 07:43 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-01-29 07:43:27 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/pypdf-4.0.1 fails tests.
Discovered on: amd64 (internal ref: ci)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0015
Comment 1 Agostino Sarubbo gentoo-dev 2024-01-29 07:43:30 UTC
Created attachment 883520 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-01-29 07:43:31 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


E       PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x77c7363482c0>
E       PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x77c7379858f0>
E               pypdf.errors.PdfReadError: Broken xref table
E                   pypdf.errors.PdfReadError: Could not find object.
E               pypdf.errors.PdfReadError: /Prev=0 in the trailer (try opening with strict=False)
E           pypdf.errors.PdfReadError: Unknown Destination Type: '0'
        :exception FileNotFoundError: If the file cannot be found.
        :exception PIL.UnidentifiedImageError: If the image cannot be opened and
        :exception TypeError: If ``formats`` is not ``None``, a list or a tuple.
        :exception ValueError: If the ``mode`` is not "r", or if a ``StringIO``
FAILED tests/test_reader.py::test_get_images_raw[True-False-0-True-] - Failed: DID NOT WARN. No warnings of type (<class 'pypdf.errors.PdfReadWarn...
FAILED tests/test_reader.py::test_get_images_raw[True-True-0-True-] - Failed: DID NOT WARN. No warnings of type (<class 'pypdf.errors.PdfReadWarn...
FAILED tests/test_reader.py::test_get_images_raw[True-True--1-True-] - Failed: DID NOT WARN. No warnings of type (<class 'pypdf.errors.PdfReadWarn...
FAILED tests/test_reader.py::test_issue604[True] - Failed: DID NOT WARN. No warnings of type (<class 'pypdf.errors.PdfReadWarn...
FAILED tests/test_reader.py::test_read_prev_0_trailer - Failed: DID NOT WARN. No warnings of type (<class 'pypdf.errors.PdfReadWarn...
FAILED tests/test_reader.py::test_read_unknown_zero_pages - Failed: DID NOT WARN. No warnings of type (<class 'pypdf.errors.PdfReadWarn...
not import 'fpdf': No module named 'fpdf')                            [573/585]
>                   raise PdfReadError("Could not find object.")
SKIPPED [1] tests/test_page.py:1273: could not import 'fpdf': No module named 'fpdf'
SKIPPED [1] tests/test_writer.py:1954: could not import 'fpdf': No module named 'fpdf'
Comment 3 Larry the Git Cow gentoo-dev 2024-01-29 10:11:22 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25472a00801da3505804d4f8c2ca8d0dd08d1a67

commit 25472a00801da3505804d4f8c2ca8d0dd08d1a67
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-01-29 10:09:35 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-01-29 10:09:35 +0000

    dev-python/pypdf: Require dev-python/pillow[zlib] for tests
    
    Closes: https://bugs.gentoo.org/923221
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/pypdf/pypdf-4.0.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-01-29 12:51:17 UTC
*** Bug 923251 has been marked as a duplicate of this bug. ***