From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id vTJhJ/ckj18HBAAA0tVLHw (envelope-from ) for ; Tue, 20 Oct 2020 17:57:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QH6wIvckj1++GQAA1q6Kng (envelope-from ) for ; Tue, 20 Oct 2020 17:57:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3CE729401BC for ; Tue, 20 Oct 2020 17:57:11 +0000 (UTC) Received: from localhost ([::1]:33340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kUvsk-0007mf-7R for larch@yhetil.org; Tue, 20 Oct 2020 13:57:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41556) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUvnB-0000yr-Bp for guix-devel@gnu.org; Tue, 20 Oct 2020 13:51:25 -0400 Received: from mail-40134.protonmail.ch ([185.70.40.134]:19105) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUvn6-000341-Qm for guix-devel@gnu.org; Tue, 20 Oct 2020 13:51:24 -0400 Date: Tue, 20 Oct 2020 17:51:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=protonmail2; t=1603216276; bh=Y7NH4Tn1mjoGaqnS5h1jfBKaIS7FowR9GSMAkH1Jtlg=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=Scfz5EMI7HZg32tLrjbJCtaKF+3WryymF4Dtnzrg2jfgkMzMDX1jsDtHtJ51Gp/0l Dy+L2+ridi3aCOWX38hhy2j+djviWbBwQQLnj6Q/+2oziOdbvndtQlLJEKepeIvS7f 9AYTLOxPXGd6WLX2D7taVLHQJRlokYM7t8gueypKfRpgnHDt1on11xxuKuOhqERTz8 qvSXAq04yWXQU82695cGufbUxE8RUyl1iSxGbXdbn5/i0pbdLDQ0UjUBKTxbQS6ow1 O3lvWi8psXnepeqJOsL7LP6zwpxibT4G4fr9D7fVegegVe/cK3B5/9aMD1wRwS3KlU USE01LTe1d5dw== To: Thorsten Wilms From: Ekaitz Zarraga Subject: Re: Inkscape export errors Message-ID: In-Reply-To: <20201020183416.70a71b3b327af794e553134a@freenet.de> References: <20201020183416.70a71b3b327af794e553134a@freenet.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.134; envelope-from=ekaitz@elenq.tech; helo=mail-40134.protonmail.ch X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/20 13:51:17 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Ekaitz Zarraga Cc: "guix-devel\\\\@gnu.org" Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elenq.tech header.s=protonmail2 header.b=Scfz5EMI; dmarc=pass (policy=none) header.from=elenq.tech; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: 4gLNjds/IYfv > 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 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 > > """) > > > 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 fa= ils 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