Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 731818 - dev-python/pikepdf-1.16.1 should RDEPEND on dev-python/pillow - ModuleNotFoundError: No module named 'PIL'
Summary: dev-python/pikepdf-1.16.1 should RDEPEND on dev-python/pillow - ModuleNotFoun...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Andrey Grozin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-09 06:16 UTC by laurantino
Modified: 2020-07-11 14:56 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description laurantino 2020-07-09 06:16:46 UTC
dev-python/pillow should not be an optional dependency (test use flag) otherwise importing pikepdf module fails :

Python 3.7.8 (default, Jul  7 2020, 08:42:27) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pikepdf
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.7/site-packages/pikepdf/__init__.py", line 48, in <module>
    from .models import (
  File "/usr/lib/python3.7/site-packages/pikepdf/models/__init__.py", line 11, in <module>
    from .image import PdfImage, PdfInlineImage, UnsupportedImageTypeError
  File "/usr/lib/python3.7/site-packages/pikepdf/models/image.py", line 17, in <module>
    from pikepdf import (
  File "/usr/lib/python3.7/site-packages/pikepdf/jbig2.py", line 11, in <module>
    from PIL import Image
ModuleNotFoundError: No module named 'PIL'
Comment 1 Nathan Zachary (RETIRED) gentoo-dev 2020-07-09 16:51:07 UTC
I can confirm that dev-python/pillow is needed for pdfarranger, which relies on dev-python/pikepdf.
Comment 2 Larry the Git Cow gentoo-dev 2020-07-11 14:56:30 UTC
The bug has been closed via the following commit(s):

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

commit 329931bd43c29f8f998bfc465f1866be5336feba
Author:     Andrey Grozin <grozin@gentoo.org>
AuthorDate: 2020-07-11 14:55:18 +0000
Commit:     Andrey Grozin <grozin@gentoo.org>
CommitDate: 2020-07-11 14:56:06 +0000

    dev-python/pikepdf: bump to 1.17.0
    
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=731818
    Package-Manager: Portage-2.3.103, Repoman-2.3.23
    Signed-off-by: Andrey Grozin <grozin@gentoo.org>

 dev-python/pikepdf/Manifest              |  1 +
 dev-python/pikepdf/pikepdf-1.17.0.ebuild | 54 ++++++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+)