Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922320 - media-gfx/inkscape: export to JPEG, TIFF, WEBP requires respective dev-python/pillow[jpeg,tiff,webp] runtime USE-deps
Summary: media-gfx/inkscape: export to JPEG, TIFF, WEBP requires respective dev-python...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 923255
  Show dependency tree
 
Reported: 2024-01-17 13:38 UTC by Gentookh
Modified: 2024-03-12 00:52 UTC (History)
3 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 Gentookh 2024-01-17 13:38:37 UTC
media-gfx/inkscape requires dev-python/pillow to support export to JPEG, yet no such dependency in ebuild.

Reproducible: Always

Steps to Reproduce:
1. File - Export...
2. JPEG (*.jpg)
3. Export
Actual Results:  
```
Traceback (most recent call last):
  File "/usr/share/inkscape/extensions/raster_output_jpg.py", line 28, in <module>
    JpegOutput().run()
  File "/usr/share/inkscape/extensions/inkex/base.py", line 230, in run
    self.load_raw()
  File "/usr/share/inkscape/extensions/inkex/base.py", line 244, in load_raw
    document = self.load(self.file_io)
               ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/inkscape/extensions/inkex/extensions.py", line 107, in load
    from PIL import Image
ModuleNotFoundError: No module named 'PIL'
```

Expected Results:  
Image successfully exported.
Comment 1 Andreas Sturmlechner gentoo-dev 2024-01-30 21:46:27 UTC
What about jpeg2k, tiff and webp?
Comment 2 Gentookh 2024-01-31 10:00:54 UTC
>What about jpeg2k, tiff and webp?

Same error for tiff and webp. jpeg2k export is not available in Inkscape for me.
Comment 3 Larry the Git Cow gentoo-dev 2024-03-12 00:52:35 UTC
The bug has been closed via the following commit(s):

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

commit 8f3867c8f2e4b1f7dcaa0c2e19812b3133bed141
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-03-12 00:49:40 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-12 00:52:22 +0000

    media-gfx/inkscape: fix Python dependencies & shebangs
    
    * Fix Python dependency (needs pillow for jpeg/tiff/webp at least)
    * Fix shebangs on Python extensions so we respect PYTHON_SINGLE_TARGET
    
    Closes: https://bugs.gentoo.org/924747
    Closes: https://bugs.gentoo.org/922320
    Signed-off-by: Sam James <sam@gentoo.org>

 media-gfx/inkscape/inkscape-1.3.2-r1.ebuild | 208 ++++++++++++++++++++++++++++
 media-gfx/inkscape/inkscape-9999.ebuild     |   5 +-
 2 files changed, 210 insertions(+), 3 deletions(-)