Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 738884 - dev-python/matplotlib-3.3.1-r1 fails tests
Summary: dev-python/matplotlib-3.3.1-r1 fails tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-25 05:11 UTC by Agostino Sarubbo
Modified: 2021-10-17 01:11 UTC (History)
3 users (show)

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


Attachments
build.log.xz (build.log.xz,133.59 KB, application/x-xz)
2020-08-25 05:11 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 2020-08-25 05:11:40 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/matplotlib-3.3.1-r1 fails tests.
Discovered on: amd64 (internal ref: ci)

NOTE:
This machine uses GLIBC-2.32. If you think that this issue is strictly related to GLIBC please block bug 736174.
Comment 1 Agostino Sarubbo gentoo-dev 2020-08-25 05:11:44 UTC
Created attachment 656548 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 François Bissey 2020-08-25 07:31:50 UTC
I was half expecting that.
>           raise OSError("encoder %s not available" % encoder_name) from e
E           OSError: encoder jpeg not available

/usr/lib64/python3.6/site-packages/PIL/Image.py:461: OSError

A few time. For test at least we probably need to depend on pillow[jpeg].

That one may be more interesting
------------------------------ Captured log setup ------------------------------
WARNING  matplotlib.testing:__init__.py:41 Could not set locale to English/United States. Some date-related tests may fail.
____________________ test_imshow_masked_interpolation[png] _____________________

expected = '/var/tmp/portage/dev-python/matplotlib-3.3.1-r1/work/matplotlib-3.3.1-python3_6/result_images/test_image/imshow_masked_interpolation-expected.png'
actual = PosixPath('/var/tmp/portage/dev-python/matplotlib-3.3.1-r1/work/matplotlib-3.3.1-python3_6/result_images/test_image/imshow_masked_interpolation.png')
tol = 0

    def _raise_on_image_difference(expected, actual, tol):
        __tracebackhide__ = True
    
        err = compare_images(expected, actual, tol, in_decorator=True)
        if err:
            for key in ["actual", "expected", "diff"]:
                err[key] = os.path.relpath(err[key])
            raise ImageComparisonFailure(
                ('images not close (RMS %(rms).3f):'
>                   '\n\t%(actual)s\n\t%(expected)s\n\t%(diff)s') % err)
E           matplotlib.testing.exceptions.ImageComparisonFailure: images not close (RMS 0.001):
E           	result_images/test_image/imshow_masked_interpolation.png
E           	result_images/test_image/imshow_masked_interpolation-expected.png
E           	result_images/test_image/imshow_masked_interpolation-failed-diff.png

build/test-lib/matplotlib/testing/decorators.py:141: ImageComparisonFailure

The warning is interesting if it can be directly related to the failure. May have to inspect the expected result.
Comment 3 Larry the Git Cow gentoo-dev 2021-10-16 22:59:25 UTC
The bug has been closed via the following commit(s):

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

commit d321667b043cfac5c12e618b211e1df73dd6f0c8
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-10-16 22:59:02 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-10-16 22:59:15 +0000

    dev-python/matplotlib: increase tolerance for test
    
    Closes: https://bugs.gentoo.org/786834
    Closes: https://bugs.gentoo.org/738884
    Signed-off-by: Sam James <sam@gentoo.org>

 .../matplotlib/files/matplotlib-3.4.3-test-extra.patch      | 13 +++++++++++++
 1 file changed, 13 insertions(+)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-17 01:11:27 UTC
(In reply to François Bissey from comment #2)
> I was half expecting that.
> >           raise OSError("encoder %s not available" % encoder_name) from e
> E           OSError: encoder jpeg not available
> 
> /usr/lib64/python3.6/site-packages/PIL/Image.py:461: OSError
> 
> A few time. For test at least we probably need to depend on pillow[jpeg].
> 

Did this a while ago btw: https://gitweb.gentoo.org/repo/gentoo.git/commit/dev-python/matplotlib?id=3eff68af64d2eb5051fd6c111aeab6544b404e7a