From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8FwlC6XBJWJc8QAAgWs5BA (envelope-from ) for ; Mon, 07 Mar 2022 09:26:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id IILxB6XBJWIukQAAauVa8A (envelope-from ) for ; Mon, 07 Mar 2022 09:26:13 +0100 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 D5F293276D for ; Mon, 7 Mar 2022 09:26:12 +0100 (CET) Received: from localhost ([::1]:47852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nR8h1-0000qT-OU for larch@yhetil.org; Mon, 07 Mar 2022 03:26:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47024) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nR8gs-0000qK-CF for bug-guix@gnu.org; Mon, 07 Mar 2022 03:26:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58573) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nR8gr-0005AG-R8 for bug-guix@gnu.org; Mon, 07 Mar 2022 03:26:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nR8gr-00059w-Lc for bug-guix@gnu.org; Mon, 07 Mar 2022 03:26:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#53258: Python unable to find modules within a Singularity container created with guix pack Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 07 Mar 2022 08:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53258 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Josselin Poiret Received: via spool by 53258-submit@debbugs.gnu.org id=B53258.164664155019810 (code B ref 53258); Mon, 07 Mar 2022 08:26:01 +0000 Received: (at 53258) by debbugs.gnu.org; 7 Mar 2022 08:25:50 +0000 Received: from localhost ([127.0.0.1]:52470 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nR8gb-00059M-LW for submit@debbugs.gnu.org; Mon, 07 Mar 2022 03:25:50 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nR8gZ-000599-Og for 53258@debbugs.gnu.org; Mon, 07 Mar 2022 03:25:44 -0500 Received: from [2001:470:142:3::e] (port=38728 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nR8gU-00058Y-0z; Mon, 07 Mar 2022 03:25:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=ytMAkJqp2VwUFG6iL/8WdXFFoX28Kqbz0VcpoPzQOiI=; b=VLvOSuAzQTcSoWSZGXqd 1woHMinZQgVwS4XCT8nUEVeLfVafS7kDICmQDmtmuOqJCNSamQvzGCNu9b8GMZGYwPHcLaZhKfwBT K4Mlx7FMo+/WkY9q4eRm6pPMq4jNn4nWGCoJMAAX96RkZFmmkEYlJhm2fvi0bDa0ItuVvI7SgPHAT k0LF/6aqlWTzYPwn5ZFkD4T/bZhpzNnrUuNPXAAHGiPoVFaBqp07p3+KGVtl19BJTZZTINaAvWNnZ g5zoEFK1TivtxNysxNOiO8kZcnabqH32F7q7O66aIKxddQuviN5oPqr79mWxoybFqzGnjNFePXB2n ++ZM34UNOpz/RQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:55294 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nR8gQ-00022v-RH; Mon, 07 Mar 2022 03:25:37 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <67e7d225-f824-b691-7125-6b37abef8bb0@felsoci.sk> <87wnj22ouh.fsf@gnu.org> <87v8xumk41.fsf@gnu.org> <87v8xt3q3s.fsf@jpoiret.xyz> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 17 =?UTF-8?Q?Vent=C3=B4se?= an 230 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 07 Mar 2022 09:25:32 +0100 In-Reply-To: <87v8xt3q3s.fsf@jpoiret.xyz> (Josselin Poiret's message of "Sat, 05 Feb 2022 23:28:39 +0100") Message-ID: <877d9641ab.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 53258@debbugs.gnu.org, Marek =?UTF-8?Q?Fel=C5=A1=C3=B6ci?= , Maxim Cournoyer Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646641572; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ytMAkJqp2VwUFG6iL/8WdXFFoX28Kqbz0VcpoPzQOiI=; b=MvAjAMF4auhatvC4BB6Ei8dEQ0Rn/OfbJ7A7VWzG+J5CcKup1hAQMk7jX0sqRoqYJVk+oV tM3Ise68HQKqcuFZApsFGZKJzNE8Vi1yq4S0BJSAPNFGs5B0xqeCZNPyqCQd2/YYtrGxbP 2h9T+oPQmiPyrdRWPPz6GV0YoM9cujKIzAStzNninHcq6bElCDwUls6fmL9qfpmLIA4utl OzOd6BOpU+zprjGdmxAz+G2Gp8oGPX1csyBKFiEEOw4YYgRLobE6+tl4p+uBMK74j5vYh/ BkxCcNnq3MXae17jICSwY7zXdsFLAgvp4Gia77mn1xbElw8gIroi2WtvCmxpvw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646641572; a=rsa-sha256; cv=none; b=hPOxYZnK7UZ0ibZ/jusmPwlS9CRg6pfW34qn5ySL4QyAyBNJIV2cZtJFE6eZlQGXW1pr9+ NNti1JG22iL8y233TJWuSUnRcwMM90u/fakYWb5bpWybcsYz6Zw54ujP8MzGtAIIVHGCUh hd2Bnbe8yP3sgakP8dLdnCvblcxO8007Aw675rjBdCTHyF619mrzfWWnTK8GDT4w7897JQ xDSFxA02RjCVNROlmCLhqoJyvWB7t6EyLDfIHM0YpCLfYIBomaV9HCgQJ180pB3MT4qjdl PzIwibSZjGwwDznks8D6Ai2qmQL6gRbroCuTAEkeafpDuElkIQNFJpPTA0Wyjg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=VLvOSuAz; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.72 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=VLvOSuAz; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: D5F293276D X-Spam-Score: -2.72 X-Migadu-Scanner: scn0.migadu.com X-TUID: j+oCNMqSvnkq Hi Josselin, Josselin Poiret skribis: > After the IRC investigation, it turned out the use of abspath in > Lib/site.py was in fact the culprit. Replacing all its uses with > realpath and doing `./pre-inst-env guix pack -RR python python-numpy -S > /bin=3Dbin -S /etc=3Detc` did in fact resolve the issue! > > I've raised the issue upstream at [1]. The fix itself is pretty simple, > but it's theoretically a breaking change, so we'll see how Python > maintainers want to move forward with it. We could backport this fix > for the next core-updates cycle, whether or not it gets accepted > upstream, and we will also need to modify sitecustomize.py as well to > call os.path.realpath on python_site. > [1] https://bugs.python.org/issue46653 Thanks for the investigation and for reporting it upstream! Is there a workaround we could apply locally, ideally one that does not lead to a world rebuild? Ludo=E2=80=99.