Bug 265643 - graphics/inkscape: missing dependency on www/py-cssselect
Summary: graphics/inkscape: missing dependency on www/py-cssselect
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dima Panov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-05 10:13 UTC by Tomoyuki Sakurai
Modified: 2022-08-05 13:42 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomoyuki Sakurai 2022-08-05 10:13:09 UTC
inkscape reports an exception.

how to reproduce:

1. install inkscape
2. [File] -> [New from template] -> select [Business card]

```text
Traceback (most recent call last):
  File "/usr/local/share/inkscape/extensions/template.py", line 24, in <module>
    import inkex
  File "/usr/local/share/inkscape/extensions/inkex/__init__.py", line 11, in <module>
    from .extensions import *
  File "/usr/local/share/inkscape/extensions/inkex/extensions.py", line 34, in <module>
    from .elements import (
  File "/usr/local/share/inkscape/extensions/inkex/elements/__init__.py", line 10, in <module>
    from ._base import ShapeElement, BaseElement
  File "/usr/local/share/inkscape/extensions/inkex/elements/_base.py", line 38, in <module>
    from ..styles import Style, Classes
  File "/usr/local/share/inkscape/extensions/inkex/styles.py", line 33, in <module>
    from .css import ConditionalRule
  File "/usr/local/share/inkscape/extensions/inkex/css.py", line 27, in <module>
    import cssselect
ModuleNotFoundError: No module named 'cssselect'

```

a quick fix:

install www/py-cssselect

see also:

https://gitlab.com/inkscape/inkscape/-/issues/2473
https://bugs.archlinux.org/task/74792?project=1&string=inkscape
https://src.fedoraproject.org/rpms/inkscape/c/39c6c1b8
Comment 1 commit-hook freebsd_committer freebsd_triage 2022-08-05 13:40:52 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=06f9a15eadca689007e8464667719e03928c7e89

commit 06f9a15eadca689007e8464667719e03928c7e89
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2022-08-05 13:38:55 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2022-08-05 13:40:28 +0000

    graphics/inkscape: add missing dependency on www/py-cssselect

    PR:     265643

 graphics/inkscape/Makefile | 2 ++
 1 file changed, 2 insertions(+)
Comment 2 Dima Panov freebsd_committer freebsd_triage 2022-08-05 13:42:02 UTC
Fixed