From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id cCAHCcD8DGcnDwAAqHPOHw:P1 (envelope-from ) for ; Mon, 14 Oct 2024 11:13:04 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id cCAHCcD8DGcnDwAAqHPOHw (envelope-from ) for ; Mon, 14 Oct 2024 13:13:04 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=dt6HIAAA; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=X4il2AgO; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1728904383; a=rsa-sha256; cv=none; b=k1rarFbbBPVdE9xYrhQNzKGCu+xAp/bhRDoZR8EaUT+3yA/tCKepPi551XuIn9sKAeDC0S rez5OsjVKYNccvrjWJEgwjOczb9ubOksYbDG6Y+sB1iPDv6YPFHDZMGm7FGxjU1XpolEW5 YK44BiWDHr3j3hAg6wh4KGF7Ly9AHvHltXBQSAF16nfivHvbP6GWhXyToXex6jYsbgNEyr 5AMlaS5fmrK+YndHVTt69TUM9O2jkhLWw6S9G+lLCVAiQlP/4/ddpm7Vk2fMtl9N9uUHSG zUFeGbqyoytgOgQG8deskKYnIvFWWpwmF7ziODCW0cnfCavIDUZfRVLYUchrZA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=dt6HIAAA; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=X4il2AgO; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1728904383; 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=FWcXBZK3GlbRL7N0xbduCCaXyEVF/cal8Nj70oqrVr8=; b=PhrcLW71+kGChNfm19OsY4tNYgaOitD4+7PrENao1YWIZIuCzR+k1MGCTtF5Hu7nsFY2cO hV2bJqsS7UPlSxHnpUt6xw/EK13EJfnIMCX3y602wMPYaJDILOZWpp4wmQxkgaa9csnAUM rX8X0dGdtwbjwUJD8qH/StFaggnlRAMfqFpxSB6Re1/klhWLbqllblUCYAv/tTTyw8fGwx z3b2etgothDbK298YaKvlzChR4nf6AblGBx6zRKl8UfpmE+z1JJTW/ZXOOKAGCsQG54hwF Y0ujau1kXqvr/qRiRqwfg54mM6mA5gYzR6PSduyp6OQDOg/sHuJWEJyrN8qmoQ== 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 BF171604B3 for ; Mon, 14 Oct 2024 13:13:03 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t0J0P-0005HL-8C; Mon, 14 Oct 2024 07:12:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t0J0I-0005Gv-3R for bug-guix@gnu.org; Mon, 14 Oct 2024 07:12:49 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t0J0H-00012K-OX for bug-guix@gnu.org; Mon, 14 Oct 2024 07:12:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=FWcXBZK3GlbRL7N0xbduCCaXyEVF/cal8Nj70oqrVr8=; b=dt6HIAAAp93xMto6obGH4COrpqeLuXW5xV/Dt404SZYR05kJZv5fsbnkDADZeeG7X9Ra2wWM08xTIKVwVRORjx7Iy9W//hhtnL5OhHYak6dd9gj9UBWEvv3krq2v+1EYJw16aF+Heo5C3Sn90ozPcjOn99k77fD4qMNU/Eiq2MMKE3X0vgksP5I6+1OJ0D/xyThXn2fxyMJpz8qxbgFKXV+PihUOjtFYQzDbmFEvuamGKeXYZOOBemZpLrRghDE5ar6n+3xlwQk3NMncyUD1Tt11YXXByMCAY9WVDrkjeBQRW/2du9/Qv3PUt5UUkenZk0ujwERWvE41dC0R2Dreog==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t0J0Y-0002Cf-Cd for bug-guix@gnu.org; Mon, 14 Oct 2024 07:13:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#73304: Python in relocatable guix pack leads to wrong sys.path Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 14 Oct 2024 11:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73304 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Konrad Hinsen Cc: Rutherther , 73304@debbugs.gnu.org, Josselin Poiret , Maxim Cournoyer Received: via spool by 73304-submit@debbugs.gnu.org id=B73304.17289043428404 (code B ref 73304); Mon, 14 Oct 2024 11:13:02 +0000 Received: (at 73304) by debbugs.gnu.org; 14 Oct 2024 11:12:22 +0000 Received: from localhost ([127.0.0.1]:35549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0Izt-0002BU-KF for submit@debbugs.gnu.org; Mon, 14 Oct 2024 07:12:21 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0Izr-0002BB-Jv for 73304@debbugs.gnu.org; Mon, 14 Oct 2024 07:12:20 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t0IzU-0000yh-CS; Mon, 14 Oct 2024 07:11:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=FWcXBZK3GlbRL7N0xbduCCaXyEVF/cal8Nj70oqrVr8=; b=X4il2AgOY5/vxNi/XR0E fQWPpyvW/q92YfHXqtPdtD2k4rJV3ZT7Z9aQYEqfnybSTl9HnY4fItJG8LN6f/PvCbOYcVjFblli4 ksnaGeF05mZGY08FH0S/AINafRxzupsGPt30oSZvXRaW3kiuhL9IGtfIfIvXGn3dS+91TeXQx0YeD Jck8BGU+38TZN0V2owaX+aEURU0BYWWtNcFmVlIGgkxeuPbJ2z3+tZ2G/moLbsrMWQowt75qKh7jl 9nTYx8liZveBaoad+XcgKW+rWi1/mnvaCXVAYfShs98ltbZ5qrX0RiHImXMZ/rqg+FECDpyQb+4sS Nxtck2/xOiEnDw==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: (Konrad Hinsen's message of "Sun, 06 Oct 2024 10:29:22 +0200") References: <87ed5j1jzd.fsf@protonmail.com> <87zfno3l4i.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Tridi 23 =?UTF-8?Q?Vend=C3=A9miaire?= an 233 de la =?UTF-8?Q?R=C3=A9volution,?= jour du Navet 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, 14 Oct 2024 13:11:36 +0200 Message-ID: <87a5f73pnb.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) 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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 1.77 X-Spam-Score: 1.77 X-Migadu-Queue-Id: BF171604B3 X-Migadu-Scanner: mx12.migadu.com X-TUID: nKATpbomMoZH Hello, Konrad Hinsen skribis: > Konrad Hinsen writes: > >> I have changed my mind. In the sys.path outputs shown, there are no >> paths from add-on packages. It's just the Python standard library. >> Maybe our sitecustomize.py is not run at all, but if it is, it didn't do >> anything to sys.path. There must be a bug somewhere else. > > Our sitecustomize.py is indeed not run at all, so this definitely is a > different problem. > > Evidence: Run Rutherther's example, adding the -v option. The long > output is attached, both for "./profile/bin/python3 -v" and "$(realpath > ./profile/bin/python3) -v". Search for "site-packages" to find the > interesting parts. If you don't use realpath, large parts of the > initialization are not done. > > There are lots of ../../ in the path shown in these log files. If Python > resolves them lexically, as the normpath function does, that would > probably explain most of these issues. Ouch. Any idea where to look for solutions here? Ludo=E2=80=99.