From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 oNqYI82W/WHsgQEAgWs5BA (envelope-from ) for ; Fri, 04 Feb 2022 22:12:45 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id GNNDHM2W/WGheQEAG6o9tA (envelope-from ) for ; Fri, 04 Feb 2022 22:12:45 +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 0C3073F014 for ; Fri, 4 Feb 2022 22:12:44 +0100 (CET) Received: from localhost ([::1]:54956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nG5sp-0007qQ-VK for larch@yhetil.org; Fri, 04 Feb 2022 16:12:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53308) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nG5Yo-0002Tl-9v for bug-guix@gnu.org; Fri, 04 Feb 2022 15:52:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39064) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nG5Yn-0000Kx-VL for bug-guix@gnu.org; Fri, 04 Feb 2022 15:52:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nG5Yn-0002TU-QJ for bug-guix@gnu.org; Fri, 04 Feb 2022 15:52: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: Fri, 04 Feb 2022 20:52: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: Marek =?UTF-8?Q?Fel=C5=A1=C3=B6ci?= Received: via spool by 53258-submit@debbugs.gnu.org id=B53258.16440078659446 (code B ref 53258); Fri, 04 Feb 2022 20:52:01 +0000 Received: (at 53258) by debbugs.gnu.org; 4 Feb 2022 20:51:05 +0000 Received: from localhost ([127.0.0.1]:32961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nG5Xs-0002SH-Ou for submit@debbugs.gnu.org; Fri, 04 Feb 2022 15:51:04 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:42680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nG5Xq-0002Rm-Mw for 53258@debbugs.gnu.org; Fri, 04 Feb 2022 15:51:03 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 234E9123; Fri, 4 Feb 2022 21:50:56 +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 TLf-0Y_RWRse; Fri, 4 Feb 2022 21:50:55 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id B11053D5; Fri, 4 Feb 2022 21:50:54 +0100 (CET) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <67e7d225-f824-b691-7125-6b37abef8bb0@felsoci.sk> <87wnj22ouh.fsf@gnu.org> Date: Fri, 04 Feb 2022 21:50:54 +0100 In-Reply-To: <87wnj22ouh.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Fri, 14 Jan 2022 18:45:26 +0100") Message-ID: <87v8xumk41.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-Spamd-Bar: + X-Rspamd-Server: hera X-Rspamd-Queue-Id: 234E9123 X-Spamd-Result: default: False [1.40 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_CC(0.00)[debbugs.gnu.org,gmail.com,jpoiret.xyz]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; SUSPICIOUS_RECIPS(1.50)[] 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, 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=1644009165; 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; bh=nxAryUpxs8nDuN15GKGQl1QF1viiqIZ2PWghW27AzAw=; b=ihzebtmWgYn+l1KhfB4Dv6ejX6k4lQ62ysNLECyXB+HT4bWpLkn/mEJIURqwDDxodj4oTY AcmKhpuv8l6aMsgp54VGhdZA8ISf1oOWAZBLdkm+VEqh4eu2M+qQCZ4On5bWFVRAH4jN18 CRzxbxXOd2IxznwzgVTlzSft7SkJSYrT9H3pdAL11ZBDoPebkRgL/t4l0Vx1FjVpsvS6UE 7C9cGdo+RklPDAITr23LyjOxENKxVpKmuOrBzg0QP7dW/kp/lPkh3zZ7TEKhdA/moAVMnY pdwc4XMNL4lglP39cyDh+r/pXAX7JwCEiQI+mIRD1D4Md054LDnyL3j0NBkhsA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644009165; a=rsa-sha256; cv=none; b=WIi1Rm8a1EtgeShfmNizKyGxQWLk9yJxfWR9nIOWQiZlzh6eFbTAaVXhRhbflHz8+L8FB1 +xtgkB8EL5ynJIQCSiGDO4N1XA0039XCrGPC+/XDTThHF6I5KUvZkiabGNCtvahEqhq8WN VaBbNxvpAYNV0rsfGBmuoHIIuKRDHjp7Qiv6iNdFfQjr1kLh+SwsNT6ht/vNZ/mF314Umd 2AxCL34HHCvabEwlTwipeOXfnJgw1qgP7xktVY6nt2Kn4m9ozcuoMUNwDxFeUK/2MMGb56 N4RM91PXmrdMZt5dkCd3Y68WAJFhwSfQI3+gPPQqtibJR9lLbyQNY7X350BHqw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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: -3.63 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: 0C3073F014 X-Spam-Score: -3.63 X-Migadu-Scanner: scn1.migadu.com X-TUID: 4dM5HVyHmRma Hello! Ludovic Court=C3=A8s skribis: >>>From Marek=E2=80=99s message, it would seem that somewhere file names are > constructed by appending =E2=80=9C..=E2=80=9D. Given Unix=E2=80=99s weir= d dot-dot semantics, > relative symlinks could be interfering: Some news! Here=E2=80=99s a recap of the IRC discussion earlier today: =E2=80=98sys.prefix=E2=80=99 looks like /tmp/pack2/bin/../../zmv1alp7dzjd6hkc7l6fjz817n2mfzzw-python-3.9.9R. =E2=80=98sys.normpath=E2=80=99 does lexical dot-dot resolution (which is in= correct on POSIX): https://docs.python.org/3.11/library/os.path.html#os.path.normpath Thus, passing the prefix above to =E2=80=98sys.normpath=E2=80=99 leads =E2= =80=9Cpack2=E2=80=9D to be erased. Josselin mentioned =E2=80=9Cpath_hooks=E2=80=9D as a possible solution, tho= ugh I=E2=80=99m not sure what that means; could you explain? :-) Thanks! Ludo=E2=80=99.