Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 928962 - app-text/pdfarranger requires lcms support in dev-python/pillow
Summary: app-text/pdfarranger requires lcms support in dev-python/pillow
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andrey Grozin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-09 04:46 UTC by Nathan Zachary
Modified: 2024-04-10 14:11 UTC (History)
2 users (show)

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 Nathan Zachary 2024-04-09 04:46:59 UTC
After switching to the 23.0 profiles and rebuilding @world, I noticed that pdfarranger no longer started:

>>>>>
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.11/pdfarranger", line 5, in <module>
    from pdfarranger.pdfarranger import main
  File "/usr/lib/python3.11/site-packages/pdfarranger/pdfarranger.py", line 38, in <module>
    import pikepdf
  File "/usr/lib/python3.11/site-packages/pikepdf/__init__.py", line 55, in <module>
    from pikepdf.models import (
  File "/usr/lib/python3.11/site-packages/pikepdf/models/__init__.py", line 16, in <module>
    from pikepdf.models.image import PdfImage, PdfInlineImage, UnsupportedImageTypeError
  File "/usr/lib/python3.11/site-packages/pikepdf/models/image.py", line 19, in <module>
    from PIL.ImageCms import ImageCmsProfile
  File "/usr/lib/python3.11/site-packages/PIL/ImageCms.py", line 370, in <module>
    str, SupportsRead[bytes], core.CmsProfile, ImageCmsProfile
                              ^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/PIL/_util.py", line 23, in __getattr__
    raise self.ex
  File "/usr/lib/python3.11/site-packages/PIL/ImageCms.py", line 33, in <module>
    from . import _imagingcms as core
ImportError: cannot import name '_imagingcms' from 'PIL' (/usr/lib/python3.11/site-packages/PIL/__init__.py)
>>>>>

The problem is that it requires lcms support in dev-python/pillow.  Adding that support back in fixed the runtime error for me.
Comment 1 Larry the Git Cow gentoo-dev 2024-04-10 09:56:14 UTC
The bug has been closed via the following commit(s):

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

commit 1d53662c70af773b63aa84915e74f634cf0ae3df
Author:     Andrey Grozin <grozin@gentoo.org>
AuthorDate: 2024-04-10 09:55:49 +0000
Commit:     Andrey Grozin <grozin@gentoo.org>
CommitDate: 2024-04-10 09:55:49 +0000

    app-text/pdfarranger: updated DEPEND
    
    Closes: https://bugs.gentoo.org/928962
    Signed-off-by: Andrey Grozin <grozin@gentoo.org>

 app-text/pdfarranger/pdfarranger-1.10.1-r2.ebuild | 40 +++++++++++++++++++++++
 1 file changed, 40 insertions(+)
Comment 2 Nathan Zachary 2024-04-10 14:11:00 UTC
Thank you for fixing this problem so promptly, Andrey!

Cheers,
Nathan Zachary