From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 13 18:44:40 2017 Received: (at submit) by debbugs.gnu.org; 13 Nov 2017 23:44:40 +0000 Received: from localhost ([127.0.0.1]:39066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eEOPA-0005KO-7t for submit@debbugs.gnu.org; Mon, 13 Nov 2017 18:44:40 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35480) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eEOP8-0005KC-Hr for submit@debbugs.gnu.org; Mon, 13 Nov 2017 18:44:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eEOP2-0003rU-Ln for submit@debbugs.gnu.org; Mon, 13 Nov 2017 18:44:33 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:36564) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eEOP2-0003rM-I2 for submit@debbugs.gnu.org; Mon, 13 Nov 2017 18:44:32 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEOP1-0007WB-Bz for guix-patches@gnu.org; Mon, 13 Nov 2017 18:44:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eEOP0-0003qm-8M for guix-patches@gnu.org; Mon, 13 Nov 2017 18:44:31 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:40990) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eEOP0-0003qP-1M for guix-patches@gnu.org; Mon, 13 Nov 2017 18:44:30 -0500 Received: from saiph.selenimh (000043010000000000000469.ipv6.commingeshautdebit.fr [IPv6:2a03:a0a0:0:4301::469]) (Authenticated sender: mail@nicolasgoaziou.fr) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 9D19517209A for ; Tue, 14 Nov 2017 00:44:26 +0100 (CET) Received: from ngz by saiph.selenimh with local (Exim 4.89) (envelope-from ) id 1eEOOv-00049i-Me for guix-patches@gnu.org; Tue, 14 Nov 2017 00:44:25 +0100 From: Nicolas Goaziou To: guix-patches@gnu.org Subject: [PATCH] Scribus: Fix No module named _sysconfigdata_nd User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Date: Tue, 14 Nov 2017 00:44:25 +0100 Message-ID: <87zi7pzque.fsf@nicolasgoaziou.fr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.3 (----) --=-=-= Content-Type: text/plain Hello, This patch is an attempt to fix bug #25035, thanks to the Guix people on IRC. Regards, -- Nicolas Goaziou 0x80A93738 --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gnu-scribus-Fix-No-module-named-_sysconfigdata_nd.patch Content-Description: Fix Scribus >From 445ce30a90250d6c584a98ac60fddb4b96f1a3a7 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 14 Nov 2017 00:35:46 +0100 Subject: [PATCH] gnu: scribus: Fix No module named _sysconfigdata_nd * gnu/packages/scribus.scm (scribus): Wrap PATH with expected Python around executable. This fixes #25035. --- gnu/packages/scribus.scm | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/gnu/packages/scribus.scm b/gnu/packages/scribus.scm index 6230195ed..860d34677 100644 --- a/gnu/packages/scribus.scm +++ b/gnu/packages/scribus.scm @@ -81,7 +81,19 @@ (arguments `(#:tests? #f ;no test target #:configure-flags - '("-DWANT_GRAPHICSMAGICK=1"))) + '("-DWANT_GRAPHICSMAGICK=1") + #:phases + (modify-phases %standard-phases + (add-after 'install 'wrap-program + (lambda* (#:key inputs outputs #:allow-other-keys) + ;; Fix "ImportError: No module named _sysconfigdata_nd" where + ;; Scribus checks PATH and eventually runs system's Python + ;; instead of package's. + (let* ((out (assoc-ref outputs "out")) + (py2 (assoc-ref inputs "python"))) + (wrap-program (string-append out "/bin/scribus") + `("PATH" ":" prefix (,(string-append py2 "/bin"))))) + #t))))) (inputs `(("boost" ,boost) ("cairo" ,cairo) -- 2.14.3 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 13 19:08:01 2017 Received: (at submit) by debbugs.gnu.org; 14 Nov 2017 00:08:01 +0000 Received: from localhost ([127.0.0.1]:39099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eEOll-0007o9-Da for submit@debbugs.gnu.org; Mon, 13 Nov 2017 19:08:01 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42237) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eEOli-0007nv-S5 for submit@debbugs.gnu.org; Mon, 13 Nov 2017 19:07:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eEOlc-0004AJ-Gc for submit@debbugs.gnu.org; Mon, 13 Nov 2017 19:07:53 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43940) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eEOlc-0004AB-DR for submit@debbugs.gnu.org; Mon, 13 Nov 2017 19:07:52 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEOlb-0003gJ-AO for guix-patches@gnu.org; Mon, 13 Nov 2017 19:07:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eEOlX-00048V-VP for guix-patches@gnu.org; Mon, 13 Nov 2017 19:07:51 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:34288) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eEOlX-00046p-Oj for guix-patches@gnu.org; Mon, 13 Nov 2017 19:07:47 -0500 X-Originating-IP: 179.221.205.42 Received: from adfeno-pc1 (unknown [179.221.205.42]) (Authenticated sender: adfeno@hyperbola.info) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 04A01FB883 for ; Tue, 14 Nov 2017 01:07:44 +0100 (CET) From: Adonay Felipe Nogueira To: guix-patches@gnu.org Subject: Re: [bug#29292] [PATCH] Scribus: Fix No module named _sysconfigdata_nd References: <87zi7pzque.fsf@nicolasgoaziou.fr> Date: Mon, 13 Nov 2017 22:07:42 -0200 In-Reply-To: <87zi7pzque.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Tue, 14 Nov 2017 00:44:25 +0100") Message-ID: <87shdh7mep.fsf@hyperbola.info> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) Wow! Thank you very much for the patch, once I have the time to, I will test it. If someone else is also affected, feel free to test it too. :) Nicolas Goaziou writes: > Hello, > > This patch is an attempt to fix bug #25035, thanks to the Guix people on > IRC. > > Regards, > > --=20 > Nicolas Goaziou 0x80A93738 > > From 445ce30a90250d6c584a98ac60fddb4b96f1a3a7 Mon Sep 17 00:00:00 2001 > From: Nicolas Goaziou > Date: Tue, 14 Nov 2017 00:35:46 +0100 > Subject: [PATCH] gnu: scribus: Fix No module named _sysconfigdata_nd > > * gnu/packages/scribus.scm (scribus): Wrap PATH with expected Python arou= nd > executable. > > This fixes #25035. > --- > gnu/packages/scribus.scm | 14 +++++++++++++- > 1 file changed, 13 insertions(+), 1 deletion(-) > > diff --git a/gnu/packages/scribus.scm b/gnu/packages/scribus.scm > index 6230195ed..860d34677 100644 > --- a/gnu/packages/scribus.scm > +++ b/gnu/packages/scribus.scm > @@ -81,7 +81,19 @@ > (arguments > `(#:tests? #f ;no test target > #:configure-flags > - '("-DWANT_GRAPHICSMAGICK=3D1"))) > + '("-DWANT_GRAPHICSMAGICK=3D1") > + #:phases > + (modify-phases %standard-phases > + (add-after 'install 'wrap-program > + (lambda* (#:key inputs outputs #:allow-other-keys) > + ;; Fix "ImportError: No module named _sysconfigdata_nd" whe= re > + ;; Scribus checks PATH and eventually runs system's Python > + ;; instead of package's. > + (let* ((out (assoc-ref outputs "out")) > + (py2 (assoc-ref inputs "python"))) > + (wrap-program (string-append out "/bin/scribus") > + `("PATH" ":" prefix (,(string-append py2 "/bin"))))) > + #t))))) > (inputs > `(("boost" ,boost) > ("cairo" ,cairo) --=20 - https://libreplanet.org/wiki/User:Adfeno - Palestrante e consultor sobre /software/ livre (n=C3=A3o confundir com gratis). - "WhatsApp"? Ele n=C3=A3o =C3=A9 livre. Por favor, veja formas de se comun= icar instantaneamente comigo no endere=C3=A7o abaixo. - Contato: https://libreplanet.org/wiki/User:Adfeno#vCard - Arquivos comuns aceitos (apenas sem DRM): Corel Draw, Microsoft Office, MP3, MP4, WMA, WMV. - Arquivos comuns aceitos e enviados: CSV, GNU Dia, GNU Emacs Org, GNU GIMP, Inkscape SVG, JPG, LibreOffice (padr=C3=A3o ODF), OGG, OPUS, PDF (apenas sem DRM), PNG, TXT, WEBM. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 16 04:58:20 2017 Received: (at 29292) by debbugs.gnu.org; 16 Nov 2017 09:58:21 +0000 Received: from localhost ([127.0.0.1]:42606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFGw8-0000Yg-K8 for submit@debbugs.gnu.org; Thu, 16 Nov 2017 04:58:20 -0500 Received: from hera.aquilenet.fr ([141.255.128.1]:45498) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFGw7-0000YZ-Ea for 29292@debbugs.gnu.org; Thu, 16 Nov 2017 04:58:20 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id EAE13C2D9; Thu, 16 Nov 2017 10:58:20 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0sxj1TKcl8_3; Thu, 16 Nov 2017 10:58:20 +0100 (CET) Received: from ribbon (unknown [193.50.110.175]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 3E3479A5E; Thu, 16 Nov 2017 10:58:20 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Nicolas Goaziou Subject: Re: [bug#29292] [PATCH] Scribus: Fix No module named _sysconfigdata_nd References: <87zi7pzque.fsf@nicolasgoaziou.fr> Date: Thu, 16 Nov 2017 10:58:17 +0100 In-Reply-To: <87zi7pzque.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Tue, 14 Nov 2017 00:44:25 +0100") Message-ID: <87bmk2ilza.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 29292 Cc: 29292@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) Hi Nicolas, Nicolas Goaziou skribis: >>>From 445ce30a90250d6c584a98ac60fddb4b96f1a3a7 Mon Sep 17 00:00:00 2001 > From: Nicolas Goaziou > Date: Tue, 14 Nov 2017 00:35:46 +0100 > Subject: [PATCH] gnu: scribus: Fix No module named _sysconfigdata_nd > > * gnu/packages/scribus.scm (scribus): Wrap PATH with expected Python arou= nd > executable. > > This fixes #25035. Please make it =E2=80=9CFixes .=E2=80=9D so we = can more easily grep the git log. > + (modify-phases %standard-phases > + (add-after 'install 'wrap-program > + (lambda* (#:key inputs outputs #:allow-other-keys) > + ;; Fix "ImportError: No module named _sysconfigdata_nd" whe= re > + ;; Scribus checks PATH and eventually runs system's Python > + ;; instead of package's. > + (let* ((out (assoc-ref outputs "out")) > + (py2 (assoc-ref inputs "python"))) > + (wrap-program (string-append out "/bin/scribus") > + `("PATH" ":" prefix (,(string-append py2 "/bin"))))) Did you identify the part of the code that invokes =E2=80=9Cpython=E2=80=9D= ? If so, instead of adding a wrapper, we could patch that file to use the absolute file name of =E2=80=9Cpython=E2=80=9D, which would be even better. Anyway, congrats on finding out what was wrong! Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 20 12:26:20 2017 Received: (at 29292-done) by debbugs.gnu.org; 20 Nov 2017 17:26:20 +0000 Received: from localhost ([127.0.0.1]:49269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGpps-0002G9-Jf for submit@debbugs.gnu.org; Mon, 20 Nov 2017 12:26:20 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:59684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGppp-0002G0-Pd for 29292-done@debbugs.gnu.org; Mon, 20 Nov 2017 12:26:19 -0500 Received: from saiph.selenimh (000043010000000000000469.ipv6.commingeshautdebit.fr [IPv6:2a03:a0a0:0:4301::469]) (Authenticated sender: mail@nicolasgoaziou.fr) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id AAD62C5A7B; Mon, 20 Nov 2017 18:26:15 +0100 (CET) Received: from ngz by saiph.selenimh with local (Exim 4.89) (envelope-from ) id 1eGppn-0002nt-0o; Mon, 20 Nov 2017 18:26:15 +0100 From: Nicolas Goaziou To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [bug#29292] [PATCH] Scribus: Fix No module named _sysconfigdata_nd In-Reply-To: <87bmk2ilza.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Thu, 16 Nov 2017 10:58:17 +0100") References: <87zi7pzque.fsf@nicolasgoaziou.fr> <87bmk2ilza.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Date: Mon, 20 Nov 2017 18:26:14 +0100 Message-ID: <87r2ssn9op.fsf@nicolasgoaziou.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 29292-done Cc: 29292-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Hello, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Please make it =E2=80=9CFixes .=E2=80=9D so w= e can more > easily grep the git log. Fixed. >> + (modify-phases %standard-phases >> + (add-after 'install 'wrap-program >> + (lambda* (#:key inputs outputs #:allow-other-keys) >> + ;; Fix "ImportError: No module named _sysconfigdata_nd" wh= ere >> + ;; Scribus checks PATH and eventually runs system's Python >> + ;; instead of package's. >> + (let* ((out (assoc-ref outputs "out")) >> + (py2 (assoc-ref inputs "python"))) >> + (wrap-program (string-append out "/bin/scribus") >> + `("PATH" ":" prefix (,(string-append py2 "/bin"))))) > > Did you identify the part of the code that invokes =E2=80=9Cpython=E2=80= =9D? If so, > instead of adding a wrapper, we could patch that file to use the > absolute file name of =E2=80=9Cpython=E2=80=9D, which would be even bette= r. I know, but I couldn't find the culprit, unfortunately. It may be easier for someone more knowledgeable in the Python world. > Anyway, congrats on finding out what was wrong! To be fair, the IRC crew did all the work. I applied the patch. Thank you. Regards, --=20 Nicolas Goaziou 0x80A93738 From unknown Sat Aug 16 19:15:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 19 Dec 2017 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator