From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGpqc-0004dz-E3 for guix-patches@gnu.org; Mon, 20 Nov 2017 12:27:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eGpqZ-0002bg-81 for guix-patches@gnu.org; Mon, 20 Nov 2017 12:27:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:40589) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eGpqZ-0002ba-47 for guix-patches@gnu.org; Mon, 20 Nov 2017 12:27:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eGpqY-0002HE-MU for guix-patches@gnu.org; Mon, 20 Nov 2017 12:27:02 -0500 Subject: bug#29292: [PATCH] Scribus: Fix No module named _sysconfigdata_nd Resent-To: guix-patches@gnu.org Resent-Message-ID: From: Nicolas Goaziou In-Reply-To: <87bmk2ilza.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Thu, 16 Nov 2017 10:58:17 +0100") References: <87zi7pzque.fsf@nicolasgoaziou.fr> <87bmk2ilza.fsf@gnu.org> 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 29292-done@debbugs.gnu.org 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