From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +Cz9N0v6/mGPHQEAgWs5BA (envelope-from ) for ; Sat, 05 Feb 2022 23:29:31 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id UALxNEv6/mFH3gAAauVa8A (envelope-from ) for ; Sat, 05 Feb 2022 23:29:31 +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 AACC93CD84 for ; Sat, 5 Feb 2022 23:29:31 +0100 (CET) Received: from localhost ([::1]:44088 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGTYg-00024Z-Q6 for larch@yhetil.org; Sat, 05 Feb 2022 17:29:30 -0500 Received: from eggs.gnu.org ([209.51.188.92]:32920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGTYE-00023u-Hm for bug-guix@gnu.org; Sat, 05 Feb 2022 17:29:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41902) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nGTYD-0002tI-RE for bug-guix@gnu.org; Sat, 05 Feb 2022 17:29:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nGTYD-0003Za-Om for bug-guix@gnu.org; Sat, 05 Feb 2022 17:29: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: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 05 Feb 2022 22:29: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: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Marek =?UTF-8?Q?Fel=C5=A1=C3=B6ci?= Cc: 53258@debbugs.gnu.org, Maxim Cournoyer Received: via spool by 53258-submit@debbugs.gnu.org id=B53258.164410012813714 (code B ref 53258); Sat, 05 Feb 2022 22:29:01 +0000 Received: (at 53258) by debbugs.gnu.org; 5 Feb 2022 22:28:48 +0000 Received: from localhost ([127.0.0.1]:35799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGTXz-0003Z7-Ov for submit@debbugs.gnu.org; Sat, 05 Feb 2022 17:28:47 -0500 Received: from jpoiret.xyz ([206.189.101.64]:38402) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGTXu-0003Yv-Gf for 53258@debbugs.gnu.org; Sat, 05 Feb 2022 17:28:46 -0500 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 748A8184F6E; Sat, 5 Feb 2022 22:28:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1644100121; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QqJDITg38sYKWig2lH6LNzbPeFC6CWtF3JRlkrBqMak=; b=kMWu4iJp2xZkAoIl+f2S0DcK45x8JKiDlwgWRySd7Uwre5xIB17U0SXETsqJqbij22B1u1 wbLYAaitfxoKo2B2CAfEccNiB476FcsxFtgZmdlKBupCbUy7V2ya3zIIp1u26CfjTm1q1O ZMV54VF6S4BV/2LgcwwlfDbulkTh4Gmu80AG8X+L8ytYWlnkqr7z4QYI+XJ5hCI+JbtIda MmNzYiDxRW36N4ojDgXZnHnNWp0ppsEuk8fBnmcwApvwhQt+LGW2F2wJEgN6NlIhv/2OcS 4ZPqs0hzSWGasQMRoSBEEjgcuo7Er0g8d/VreVKjxj0Ydb/JJq0Htxc464OX9g== In-Reply-To: <87v8xumk41.fsf@gnu.org> References: <67e7d225-f824-b691-7125-6b37abef8bb0@felsoci.sk> <87wnj22ouh.fsf@gnu.org> <87v8xumk41.fsf@gnu.org> Date: Sat, 05 Feb 2022 23:28:39 +0100 Message-ID: <87v8xt3q3s.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Type: text/plain X-Spamd-Bar: + 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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" Reply-to: Josselin Poiret From: Josselin Poiret via Bug reports for GNU 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=1644100171; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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=QqJDITg38sYKWig2lH6LNzbPeFC6CWtF3JRlkrBqMak=; b=G0DE3QLAalQv/hhy+F39r9nBDAnHXiWjotKDD6dbp9nWUpGxECcF+7YJ6hi7DBrm9PjITy 8UDrs9Ks+Tbk1r/t5aK082Imz1WHNGyPT1+/8hPGtNOnQ+mk4M6Jjxsc0RNUFenH+iWlMU R9oH82lSAjnnTSuzSpjSLyniCi/pFBUJVzTGMC64B96E99sc7Som1Nl0GcoKxim/5sZdqO l8E8ZNZfSKmTaBYuDUz8lSeYz0QDozgd2fS8jh3drA5LEqHeWrTI+oQ1M61FTSW1bQyXfy nk7hqOZbobyUjM7wQv65Eoc4oZnfNUJ6yBpVF5jnBSe+m7Ycxpb+swMNQqYxSw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644100171; a=rsa-sha256; cv=none; b=jY6EMd4FUY12FiJipteTqvf8je2sS4rG8X5pDtcy69Cq8fhJYqnBA1/HoQwCRJoaFS1mTc vi7OZLfyL9e9tIbHf3YgQ8fpM+A9Ft/Ekg7RmMN94bRCUuTLtY9RsEI4N1s40z5Pp9BxOF JMO7JLrTfWXH9BMB8fPNX1uBiP9rXL1vsKjxBAAikO5lfbQKYqyW5wbAGuvw6c4FkohrcP 877Z1tG1aEE+dP1ptGElfmSb0xF9qOor0wi6iZ1cO5vg6J/+DhSwbiPxdkJ4ohrJm6vSzZ FPPi+jpbAwWzeBQU5O6MwjO745zM5rHm/k+qO76a7gk/9pz3HYDVoo5IalwcpA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=kMWu4iJp; 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.63 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=kMWu4iJp; 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: AACC93CD84 X-Spam-Score: -2.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: IZnfhVYWyfL0 Hello everyone, 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=bin -S /etc=etc` 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. Best, -- Josselin Poiret