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.
Created attachment 656548 [details] build.log.xz build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
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.
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(+)
(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