guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inkscape export errors


From: Ludovic Courtès
Subject: Re: Inkscape export errors
Date: Wed, 21 Oct 2020 15:03:52 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Egun on,

Ekaitz Zarraga <ekaitz@elenq.tech> skribis:

> I'm experiencing export errors in Inkscape 1.0.1 on several formats like DXF 
> or Optimized SVG. I'm getting the following error:
>
> ```
> Traceback (most recent call last):
>   File "output_scour.py", line 8, in <module>
>     import inkex
>   File 
> "/gnu/store/ky8vkkxi4b7a3bqlbmlagmv5j2vdnafb-inkscape-1.0.1/share/inkscape/extensions/inkex/__init__.py",
>  line 11, in <module>
>     from .extensions import *
>   File 
> "/gnu/store/ky8vkkxi4b7a3bqlbmlagmv5j2vdnafb-inkscape-1.0.1/share/inkscape/extensions/inkex/extensions.py",
>  line 33, in <module>
>     from .elements import load_svg, BaseElement, ShapeElement, Group, Layer, 
> Grid, \
>   File 
> "/gnu/store/ky8vkkxi4b7a3bqlbmlagmv5j2vdnafb-inkscape-1.0.1/share/inkscape/extensions/inkex/elements/__init__.py",
>  line 8, in <module>
>     from ._base import SVG_PARSER, load_svg, ShapeElement, BaseElement
>   File 
> "/gnu/store/ky8vkkxi4b7a3bqlbmlagmv5j2vdnafb-inkscape-1.0.1/share/inkscape/extensions/inkex/elements/_base.py",
>  line 31, in <module>
>     from lxml import etree
> ModuleNotFoundError: No module named 'lxml'
> ```
>
> I suppose it's because python-lxml package is not included in Inkscape. Is 
> there any reason for that?
>
> I tried to edit package description to add python-lxml as a propagated input 
> but it didn't work. Why is that?

You would then need to include this variant of ‘inkscape’ alongside
‘python’ so that ~/.guix-profile/etc/profile sets ‘PYTHONPATH’
accordingly.

A better fix would be to use ‘wrap-program’ to wrap ‘inkscape’ such that
‘PYTHONPATH’ always points to ‘python-lxml’.  There are several examples
of packages that do that.

Does that make sense?

HTH,
Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]