Inkscape can't find python-lxml

  • Done
  • quality assurance status badge
Details
3 participants
  • Leo Famulari
  • Ludovic Courtès
  • Maxim Cournoyer
Owner
unassigned
Submitted by
Leo Famulari
Severity
normal
L
L
Leo Famulari wrote on 30 Aug 2022 04:50
(address . bug-guix@gnu.org)
Yw164cun8xQIr9Rj@jasmine.lan
I'm not able to create QR codes in Inkscape.

I try to create a QR code in Inkscape by going through these menus:
Extensions -> Render -> Barcode -> QR Code

But, when I click "Apply" to create the QR code, Inkscape prints an
error message like this:

------
Traceback (most recent call last):
File "/gnu/store/crndrs40jrk5ddfxi7569123lbibhz42-inkscape-1.2.1/share/inkscape/extensions/render_barcode_qrcode.py", line 30, in <module>
import inkex
File "/gnu/store/crndrs40jrk5ddfxi7569123lbibhz42-inkscape-1.2.1/share/inkscape/extensions/inkex/__init__.py", line 11, in <module>
from .extensions import *
File "/gnu/store/crndrs40jrk5ddfxi7569123lbibhz42-inkscape-1.2.1/share/inkscape/extensions/inkex/extensions.py", line 34, in <module>
from .elements import (
File "/gnu/store/crndrs40jrk5ddfxi7569123lbibhz42-inkscape-1.2.1/share/inkscape/extensions/inkex/elements/__init__.py", line 9, in <module>
from ._parser import SVG_PARSER, load_svg
File "/gnu/store/crndrs40jrk5ddfxi7569123lbibhz42-inkscape-1.2.1/share/inkscape/extensions/inkex/elements/_parser.py", line 30, in <module>
from lxml import etree
ModuleNotFoundError: No module named 'lxml'
------

Any ideas?
M
M
Maxim Cournoyer wrote on 10 Oct 2022 06:40
(name . Leo Famulari)(address . leo@famulari.name)(address . 57479@debbugs.gnu.org)
871qrg2swr.fsf@gmail.com
Hi,

Leo Famulari <leo@famulari.name> writes:

Toggle quote (25 lines)
> I'm not able to create QR codes in Inkscape.
>
> I try to create a QR code in Inkscape by going through these menus:
> Extensions -> Render -> Barcode -> QR Code
>
> But, when I click "Apply" to create the QR code, Inkscape prints an
> error message like this:
>
> ------
> Traceback (most recent call last):
> File "/gnu/store/crndrs40jrk5ddfxi7569123lbibhz42-inkscape-1.2.1/share/inkscape/extensions/render_barcode_qrcode.py", line 30, in <module>
> import inkex
> File "/gnu/store/crndrs40jrk5ddfxi7569123lbibhz42-inkscape-1.2.1/share/inkscape/extensions/inkex/__init__.py", line 11, in <module>
> from .extensions import *
> File "/gnu/store/crndrs40jrk5ddfxi7569123lbibhz42-inkscape-1.2.1/share/inkscape/extensions/inkex/extensions.py", line 34, in <module>
> from .elements import (
> File "/gnu/store/crndrs40jrk5ddfxi7569123lbibhz42-inkscape-1.2.1/share/inkscape/extensions/inkex/elements/__init__.py", line 9, in <module>
> from ._parser import SVG_PARSER, load_svg
> File "/gnu/store/crndrs40jrk5ddfxi7569123lbibhz42-inkscape-1.2.1/share/inkscape/extensions/inkex/elements/_parser.py", line 30, in <module>
> from lxml import etree
> ModuleNotFoundError: No module named 'lxml'
> ------
>
> Any ideas?

Wrap inkscape with GUIX_PYTHONPATH and 'python-lxml' as an input. Or
simply install python-lxml (and python) in your user profile.

--
Thanks,
Maxim
L
L
Ludovic Courtès wrote on 27 Jan 2023 16:27
Re: bug#60975: [PATCH] gnu: inkscape: Fix qrcode rendering.
(name . Michael Rohleder)(address . mike@rohleder.de)
87bkmk5778.fsf@gnu.org
Hi,

Michael Rohleder <mike@rohleder.de> skribis:

Toggle quote (4 lines)
>
> * gnu/packages/inkscape.scm (inkscape)[inputs]: Add python-cssselect.

Applied, thanks!

Ludo’.
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 57479@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 57479
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch