From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uSq8JyvaLmDMdAAA0tVLHw (envelope-from ) for ; Thu, 18 Feb 2021 21:20:43 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id WLwiIyvaLmCLKQAAB5/wlQ (envelope-from ) for ; Thu, 18 Feb 2021 21:20:43 +0000 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 1E20113685 for ; Thu, 18 Feb 2021 22:20:43 +0100 (CET) Received: from localhost ([::1]:35718 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCqj3-00083f-6r for larch@yhetil.org; Thu, 18 Feb 2021 16:20:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:32992) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCqhW-0007EI-8m for bug-guix@gnu.org; Thu, 18 Feb 2021 16:19:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36720) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCqhS-0006ol-FV for bug-guix@gnu.org; Thu, 18 Feb 2021 16:19:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lCqhS-0007uv-BX for bug-guix@gnu.org; Thu, 18 Feb 2021 16:19:02 -0500 Subject: bug#46569: python can't find internal pip modules in environment from manifest Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Thu, 18 Feb 2021 21:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 46569 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Jelle Licht Mail-Followup-To: 46569@debbugs.gnu.org, maxim.cournoyer@gmail.com, jlicht@fsfe.org Received: via spool by 46569-done@debbugs.gnu.org id=D46569.161368313630414 (code D ref 46569); Thu, 18 Feb 2021 21:19:02 +0000 Received: (at 46569-done) by debbugs.gnu.org; 18 Feb 2021 21:18:56 +0000 Received: from localhost ([127.0.0.1]:48264 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCqhM-0007uU-3C for submit@debbugs.gnu.org; Thu, 18 Feb 2021 16:18:56 -0500 Received: from mail-qt1-f179.google.com ([209.85.160.179]:45828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCqhJ-0007uG-U5 for 46569-done@debbugs.gnu.org; Thu, 18 Feb 2021 16:18:54 -0500 Received: by mail-qt1-f179.google.com with SMTP id o30so2164705qtd.12 for <46569-done@debbugs.gnu.org>; Thu, 18 Feb 2021 13:18:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=iZogSwKhcJuvCV+3OwvDJcGQB/1FMIn2YIINzR72q4c=; b=PR2cx35RE9TUSC7ZI7BqWtNfJXWZgt11PPgCc/ikXoaGF27bRpBW8oX0tHEzKjX1C1 tU+K2gTfqphlaLjjjjTogqi0AxrmsFwxb4j8bQO6aXZB4Hu1gIHdlPAVfNYfmyII+iFW qKxHSDqG8oDnWtEal+Yz9hX6JKpLEYNKaY9fzVEKmUP/CyV9nF+zspNesI02i0zUvBpz wCjQ5OTs2H5EOAfA78RSZKSEfgdFqeP00aP7IwwUOvq27OnKOnk2owklxE4Vvj59vK0R z+LeQUS/UTutHuLKwi1AkGgyKM6qzyQ9tTQLPAQjFLcvyGGvtEoZkBJBm3dX5bBm048F NKnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=iZogSwKhcJuvCV+3OwvDJcGQB/1FMIn2YIINzR72q4c=; b=EYavvPkKUu/vFS36Wv4tTUxbupKVosw/xH72zZJTku3q8Klwy54PelCvo2UzmtM+x1 AYFHr8Jv6/dvypWmWdegd/6zyo9wo0cf7gwFggewux0vN63t8uS9A+wSMkWmwGIPsxZP JoTHLKqivRNWRWfma2esMEKhtK370ZeAajYrlON7vGE5Bx+/QBbKUcrXAtNfh3p0A9Yi qo4d5U7tGV83cAoxtGfJqs2k5ZVQCqSnULSqw/gHkzYMGM14mdcBgr3FlNwIAl94mOXJ M/TwVRiZKJa9CWjcyOcnSG48/hPAxTlhG8pOHAEsIGmILsOWTCzVh3B10fjyNr7PuHyw hZYQ== X-Gm-Message-State: AOAM533gzgUG+nytVXxlKWqnkcTIhJd8Qx1Qz+pwwU7EbZIMOxtrHErt 02mm0+uATmZGn8t8rbREKBBIY8oHrKiBLA== X-Google-Smtp-Source: ABdhPJz/pb/tB+1daNKEvv1GvbXEsdZdDjDKHD9/Cp81mJGT0SbgRJJ6Gl5zj5KoKQBEtE9j70H0xQ== X-Received: by 2002:a05:622a:347:: with SMTP id r7mr5742284qtw.279.1613683128245; Thu, 18 Feb 2021 13:18:48 -0800 (PST) Received: from hurd (dsl-157-68.b2b2c.ca. [66.158.157.68]) by smtp.gmail.com with ESMTPSA id m5sm4890795qkf.55.2021.02.18.13.18.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Feb 2021 13:18:47 -0800 (PST) From: Maxim Cournoyer References: <86czwz7ms3.fsf@fsfe.org> Date: Thu, 18 Feb 2021 16:18:47 -0500 In-Reply-To: <86czwz7ms3.fsf@fsfe.org> (Jelle Licht's message of "Tue, 16 Feb 2021 21:58:20 +0100") Message-ID: <87h7m9ulag.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: 46569-done@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.27 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=PR2cx35R; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 1E20113685 X-Spam-Score: -1.27 X-Migadu-Scanner: scn0.migadu.com X-TUID: G+PhjERmh/bo Hello Jelle, Jelle Licht writes: > Python can not load all pip-related python modules when loaded from a > manifest file, yet seems to work fine when loaded 'directly' as part of > a `guix environment'-invocation. > > > Provided that we have a file in `hi.py': > > import pip > print("halfwaypoint") > import pip._internal.index.package_finder > print("I made it!") The problem seems to be related to the version of pip used. The one bundled with our Python on master is: $ guix environment --pure --ad-hoc python -- pip3 --version pip 19.2.3 from /gnu/store/pw65c67dmzr2m9wbkj5mskhm6ljk6xal-profile/lib/python3.8/site-packages/pip (python 3.8) and $ guix environment --pure --ad-hoc python -- python3 -c 'import pip._internal.index.package_finder' Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'pip._internal.index.package_finder'; 'pip._internal.index' is not a package but $ guix environment --pure --ad-hoc python python-pip -- pip3 --version pip 20.2.4 from /gnu/store/d75bwzbla5ybhs0mdw80qy94mawnhhsw-python-pip-20.2.4/lib/python3.8/site-packages/pip (python 3.8) and $ guix environment --pure --ad-hoc python python-pip -- python3 -c 'import pip._internal.index.package_finder' $ echo $? 0 HTH! Closing. Maxim