all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ekaitz Zarraga <ekaitz@elenq.tech>
To: Thorsten Wilms <t_w_@freenet.de>
Cc: "guix-devel\\\\@gnu.org" <guix-devel@gnu.org>
Subject: Re: Inkscape export errors
Date: Tue, 20 Oct 2020 17:51:09 +0000	[thread overview]
Message-ID: <zNd7bp6r0W-OzNCZagAy6-amqEcfmAO5jd7CWVrqwrQuaiJw2Qdjgqv3GH4SN4_87hYFaKeLLgHCt1rgDTUDjtZ3Do3uOt_-dRJ2MyemZZ4=@elenq.tech> (raw)
In-Reply-To: <20201020183416.70a71b3b327af794e553134a@freenet.de>

> For optimized SVG, the error is due to missing the package scour, which
> I meant to report, but was just reminded of because of your email.
>
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
> /usr/lib/python3/dist-packages/apport/report.py:13: DeprecationWarning:
> the imp module is deprecated in favour of importlib; see the module's
> documentation for alternative uses import fnmatch, glob, traceback,
> errno, sys, atexit, locale, imp Traceback (most recent call last): File
> "output_scour.py", line 11, in <module> import scour
> ModuleNotFoundError: No module named 'scour'
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
> File "output_scour.py", line 17, in <module>
>
>     """)
>
>
> inkex.utils.DependencyError: Failed to import module 'scour'.
> Please make sure it is installed (e.g. using 'pip install scour'
> or 'sudo apt-get install python-scour') and try again.
>
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> --
>
> Thorsten Wilms t_w_@freenet.de

Hi, thanks for the feedback.

I tried to replicate that and I can't.

I made some research. Yours is passing the "import inkex" line because it's able to load `lxml`.
The first question I'd like to make is: why?

If you check the code of the extensions under `output_scour.py`[^1] file:


``` python
#!/usr/bin/env python
"""
Run the scour module on the svg output.
"""

from distutils.version import StrictVersion

import inkex

try:
    import scour
    from scour.scour import scourString
except ImportError:
    raise inkex.DependencyError("""Failed to import module 'scour'.
Please make sure it is installed (e.g. using 'pip install scour'
  or 'sudo apt-get install python-scour') and try again.
""")
```

Yours is failing in the try-except block, in the `import scour` and mine fails before, in the `import inkex` line.

Any thoughts about why is this happening?

I tried to add python-lxml as a dep but it doesn't solve the import in any case.

Ideas?

Ekaitz

[^1]: https://gitlab.com/inkscape/extensions/-/blob/1.0.x/output_scour.py


  reply	other threads:[~2020-10-20 17:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-20 12:53 Inkscape export errors Ekaitz Zarraga
2020-10-20 16:34 ` Thorsten Wilms
2020-10-20 17:51   ` Ekaitz Zarraga [this message]
2020-10-21  7:35     ` Thorsten Wilms
2020-10-21 13:03 ` Ludovic Courtès
2020-10-21 13:56   ` Ekaitz Zarraga
2020-10-21 15:59     ` Ludovic Courtès
2020-10-21 17:17       ` Ekaitz Zarraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='zNd7bp6r0W-OzNCZagAy6-amqEcfmAO5jd7CWVrqwrQuaiJw2Qdjgqv3GH4SN4_87hYFaKeLLgHCt1rgDTUDjtZ3Do3uOt_-dRJ2MyemZZ4=@elenq.tech' \
    --to=ekaitz@elenq.tech \
    --cc=guix-devel@gnu.org \
    --cc=t_w_@freenet.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.