Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 823476 - app-text/calibre-5.32.0-r1 fails tests: ModuleNotFoundError: No module named _imaging
Summary: app-text/calibre-5.32.0-r1 fails tests: ModuleNotFoundError: No module named ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Zac Medico
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-13 06:48 UTC by Agostino Sarubbo
Modified: 2022-06-23 05:19 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,165.84 KB, text/plain)
2021-11-13 06:48 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 2021-11-13 06:48:07 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-text/calibre-5.32.0-r1 fails tests.
Discovered on: amd64 (internal ref: ci)

NOTE:
This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
If you think this is a GCC-11 related issue, please block bug 732706.
Comment 1 Agostino Sarubbo gentoo-dev 2021-11-13 06:48:10 UTC
Created attachment 750894 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-11-13 06:48:11 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


ImportError: cannot import name '_imagingft' from 'PIL' (/usr/lib/python3.9/site-packages/PIL/__init__.py)
ModuleNotFoundError: No module named '_imaging'
Comment 3 Zac Medico gentoo-dev 2021-11-13 21:50:30 UTC
The import succeeds for me with pillow-8.3.2:

[ebuild   R    ] dev-python/pillow-8.3.2::gentoo  USE="jpeg lcms tiff truetype xcb zlib -examples -imagequant -jpeg2k -test -tk -webp" PYTHON_TARGETS="python3_8 python3_9 python3_10 (-pypy3)" 0 KiB
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-13 22:00:09 UTC
I think this is provided by USE=truetype iirc
Comment 5 Zac Medico gentoo-dev 2021-11-14 03:06:34 UTC
I did a test build of pillow-8.3.2 with USE="-* python_targets_python3_10" and it still installed the relevant files:

>    /usr/lib/python3.10/site-packages/PIL/_imagingmath.cpython-310-x86_64-linux-gnu.so
>    /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-x86_64-linux-gnu.so
>    /usr/lib/python3.10/site-packages/PIL/_imagingtk.cpython-310-x86_64-linux-gnu.so
>    /usr/lib/python3.10/site-packages/PIL/_imagingmorph.cpython-310-x86_64-linux-gnu.so
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-23 05:15:58 UTC
(In reply to Zac Medico from comment #5)
> I did a test build of pillow-8.3.2 with USE="-* python_targets_python3_10"
> and it still installed the relevant files:
> 
> >    /usr/lib/python3.10/site-packages/PIL/_imagingmath.cpython-310-x86_64-linux-gnu.so
> >    /usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-x86_64-linux-gnu.so
> >    /usr/lib/python3.10/site-packages/PIL/_imagingtk.cpython-310-x86_64-linux-gnu.so
> >    /usr/lib/python3.10/site-packages/PIL/_imagingmorph.cpython-310-x86_64-linux-gnu.so

Not imagingft, right?
Comment 7 Larry the Git Cow gentoo-dev 2022-06-23 05:19:57 UTC
The bug has been closed via the following commit(s):

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

commit 1fcdcc8c88c02b6d7232c14f172b1b21c0020216
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-23 05:16:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-23 05:16:46 +0000

    app-text/calibre: fix pillow dep
    
    Closes: https://bugs.gentoo.org/823476
    Signed-off-by: Sam James <sam@gentoo.org>

 app-text/calibre/{calibre-5.44.0.ebuild => calibre-5.44.0-r1.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)