Bug 2152880

Summary: [Flatpak] Optimized SVG export/saving fails
Product: [Fedora] Fedora Reporter: rugk <7d28c752>
Component: inkscapeAssignee: Gwyn Ciesla <gwync>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: duffy, gwync, lkundrak, rlerch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-22 01:36:32 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:

Description rugk 2022-12-13 12:11:27 UTC
Description of problem:
When you export an optimized SVG, this fails.

Version-Release number of selected component (if applicable):

$ flatpak info org.inkscape.Inkscape

Inkscape - Vector Graphics Editor

          ID: org.inkscape.Inkscape
         Ref: app/org.inkscape.Inkscape/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 1.2.1
     License: GPL-2.0-or-later
      Origin: fedora
  Collection: 
Installation: system
   Installed: 319.6?MB
     Runtime: org.fedoraproject.Platform/x86_64/f37
         Sdk: org.fedoraproject.Sdk/x86_64/f37

      Commit: ef553e6eec59c141ed20aec837b09ccc06d3455e79bc0efbb3719d1789c650b9
     Subject: Export org.inkscape.Inkscape
        Date: 2022-10-09 06:54:53 +0000
      Alt-id: 081a06b984bf5ffe2bd49e7dedab2e99e93c2d9548c259184f733a7517d0dcc8

Inkscape 1.2.1 (9c6d41e410, 2022-07-14)

    GLib version:     2.74.1
    GTK version:      3.24.34
    glibmm version:   2.66.5
    gtkmm version:    3.24.7
    libxml2 version:  2.9.14
    libxslt version:  1.1.37
    Cairo version:    1.17.6
    Pango version:    1.50.11
    HarfBuzz version: 5.2.0

    OS version:       Fedora Linux 37 (Thirty Seven)

The optimized exporter script seems to be: "This version was developed for Scour 0.31+" (The about dialog in the export settings shows this)

How reproducible:
Always.

Steps to Reproduce:
1. File -> Save as
2. Choose "Optimized SVG" at the bottom.
3. Click save.

Actual results:
Error message shown:
Traceback (most recent call last):
  File "/app/share/inkscape/extensions/output_scour.py", line 11, in <module>
    from packaging.version import Version
ModuleNotFoundError: No module named 'packaging'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/share/inkscape/extensions/output_scour.py", line 13, in <module>
    raise inkex.DependencyError(
inkex.utils.DependencyError: Failed to import module 'packaging'.
Please make sure it is installed (e.g. using 'pip install packaging'
or 'sudo apt-get install python3-packaging') and try again.

File is not saved.

Expected results:
Should save file.

Additional info:
If I had to guess, this is due to a missing dependency in the flatpak.

IIRC it worked in previous versions.

Comment 1 rugk 2022-12-13 12:19:23 UTC
Confifmed. Installed Inkscape 1.2.2 (b0a8486541, 2022-12-01) from Flathub and now it works.

Comment 2 Fedora Update System 2022-12-13 16:06:03 UTC
FEDORA-2022-3a2111f773 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-3a2111f773

Comment 3 Fedora Update System 2022-12-13 16:06:05 UTC
FEDORA-2022-ccef8b9c51 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-ccef8b9c51

Comment 4 Gwyn Ciesla 2022-12-13 16:07:09 UTC
I've updated the python-scour package to require python3-packaging. Once that gets to stable, the flatpak maintainer can update to 1.2.2 and that will pull in the new python-scour and fix the bug.

Comment 5 Fedora Update System 2022-12-14 02:09:20 UTC
FEDORA-2022-3a2111f773 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-2022-3a2111f773`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-3a2111f773

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

Comment 6 Fedora Update System 2022-12-14 03:22:22 UTC
FEDORA-2022-ccef8b9c51 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-2022-ccef8b9c51`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-ccef8b9c51

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

Comment 7 Fedora Update System 2022-12-22 01:36:32 UTC
FEDORA-2022-3a2111f773 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2022-12-22 02:40:49 UTC
FEDORA-2022-ccef8b9c51 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.