Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942828 - media-gfx/inkscape-1.4: ModuleNotFoundError: No module named 'tinycss2'
Summary: media-gfx/inkscape-1.4: ModuleNotFoundError: No module named 'tinycss2'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-03 15:59 UTC by J.Borme
Modified: 2024-11-13 20:03 UTC (History)
1 user (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 J.Borme 2024-11-03 15:59:08 UTC
After updating from inkscape-1.3.2-r2 to inkscape-1.4, opening DXF files results in complain of missing module tinycss2. The functionality of importing DXF files is restored when dev-python/tinycss2 is installed (stable version works).

Runtime error when inkscape-1.4 is opening a DXF file if tinycss2 isn't installed:

Traceback (most recent call last):
  File "/usr/share/inkscape/extensions/dxf_input.py", line 38, in <module>
    import inkex
  File "/usr/share/inkscape/extensions/inkex/__init__.py", line 11, in <module>
    from .extensions import *
  File "/usr/share/inkscape/extensions/inkex/extensions.py", line 34, in <module>
    from .elements import (
  File "/usr/share/inkscape/extensions/inkex/elements/__init__.py", line 10, in <module>
    from ._base import ShapeElement, BaseElement
  File "/usr/share/inkscape/extensions/inkex/elements/_base.py", line 40, in <module>
    from ..styles import Style, Classes, StyleValue
  File "/usr/share/inkscape/extensions/inkex/styles.py", line 31, in <module>
    import tinycss2
ModuleNotFoundError: No module named 'tinycss2'


Reproducible: Always
Comment 1 Karl-Johan Karlsson 2024-11-13 19:43:01 UTC
tinycss2 is now required for all extensions, according to the release notes: https://inkscape.org/doc/release_notes/1.4/Inkscape_1.4.html#Important_Changes_for_Packagers

Manually installing dev-python/tinycss2 makes everything I've tried so far work again.
Comment 2 Larry the Git Cow gentoo-dev 2024-11-13 20:03:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93ab3be0431790c058dfa234fec55fb6ce520f22

commit 93ab3be0431790c058dfa234fec55fb6ce520f22
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-11-13 20:01:56 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-13 20:01:58 +0000

    media-gfx/inkscape: depend on tinycss2
    
    See https://inkscape.org/doc/release_notes/1.4/Inkscape_1.4.html#Important_Changes_for_Packagers.
    
    Closes: https://bugs.gentoo.org/942828
    Signed-off-by: Sam James <sam@gentoo.org>

 media-gfx/inkscape/{inkscape-1.4.ebuild => inkscape-1.4-r1.ebuild} | 1 +
 media-gfx/inkscape/inkscape-9999.ebuild                            | 1 +
 2 files changed, 2 insertions(+)

Additionally, it has been referenced in the following commit(s):

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

commit f1f73163b66057f2ece8b35014b39c85640041a9
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-11-13 20:02:54 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-13 20:02:54 +0000

    media-gfx/inkscape: add note wrt release notes
    
    Bug: https://bugs.gentoo.org/942828
    Signed-off-by: Sam James <sam@gentoo.org>

 media-gfx/inkscape/inkscape-1.4-r1.ebuild | 3 +++
 media-gfx/inkscape/inkscape-9999.ebuild   | 3 +++
 2 files changed, 6 insertions(+)