Bug 2159438

Summary: Error when exporting as .jpg
Product: [Fedora] Fedora Reporter: thefusrotardis05
Component: inkscapeAssignee: Gwyn Ciesla <gwync>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 37CC: duffy, gwync, klember, lkundrak, rlerch
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: inkscape-1.2.2-3.fc37 inkscape-stable-3720230109214331.1 inkscape-1.2.2-3.fc36 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-11 01:21:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
A recording showing the issue none

Description thefusrotardis05 2023-01-09 15:31:13 UTC
Created attachment 1936805 [details]
A recording showing the issue

Description of problem:
When trying to export as .jpg an error message shows up saying the module "PIL" was not found.


Version-Release number of selected component (if applicable):
Inkscape 1.2.2 (b0a84865, 2022-12-01) [Flatpak version, Fedora Flatpak)


How reproducible:


Steps to Reproduce:
1. Open Inkscape
2. Add any elements
3. File > Export > name the file and select "JPEG (.jpg) as the format

Actual results:
Error message pops up:
"Traceback (most recent call last):
File "/app/share/inkscape/extensions/raster_output_jpg.py", line 28, in 
JpegOutput().run()
File "/app/share/inkscape/extensions/inkex/base.py", line 230, in run
self.load_raw()
File "/app/share/inkscape/extensions/inkex/base.py", line 244, in load_raw
document = self.load(self.file_io)
^^^^^^^^^^^^^^^^^^^^^^^
File "/app/share/inkscape/extensions/inkex/extensions.py", line 107, in load
from PIL import Image
ModuleNotFoundError: No module named 'PIL'"


Expected results:
It should export as .jpg


Additional info:
It only happens with the Fedora Flatpak version, rpm is working normally.

Comment 1 Gwyn Ciesla 2023-01-09 15:41:16 UTC
sudo dnf install python3-pillow

should resolve this. I'll put out an update to have inkscape pull it in.

Comment 2 Kalev Lember 2023-01-09 15:59:15 UTC
I'll go and build updated flatpak package with the fix as well.

Comment 3 Fedora Update System 2023-01-09 16:54:33 UTC
FEDORA-2023-0d0d66b456 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-0d0d66b456

Comment 4 Fedora Update System 2023-01-09 22:23:14 UTC
FEDORA-FLATPAK-2023-e2f715b093 has been submitted as an update to Fedora 37 Flatpaks. https://bodhi.fedoraproject.org/updates/FEDORA-FLATPAK-2023-e2f715b093

Comment 5 Fedora Update System 2023-01-10 01:47:16 UTC
FEDORA-2023-0d0d66b456 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-0d0d66b456`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-0d0d66b456

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2023-01-10 02:25:13 UTC
FEDORA-2023-bb86457cc5 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-bb86457cc5`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-bb86457cc5

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2023-01-10 02:26:20 UTC
FEDORA-FLATPAK-2023-e2f715b093 has been pushed to the Fedora 37 Flatpaks testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-FLATPAK-2023-e2f715b093

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2023-01-11 01:21:36 UTC
FEDORA-2023-0d0d66b456 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2023-01-11 01:23:43 UTC
FEDORA-FLATPAK-2023-e2f715b093 has been pushed to the Fedora 37 Flatpaks stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2023-01-18 01:39:13 UTC
FEDORA-2023-bb86457cc5 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.