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 QE9cGSStLmCVKQAA0tVLHw (envelope-from ) for ; Thu, 18 Feb 2021 18:08:36 +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 UD8VFSStLmC2EgAAB5/wlQ (envelope-from ) for ; Thu, 18 Feb 2021 18:08:36 +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 C445D32C92 for ; Thu, 18 Feb 2021 19:08:35 +0100 (CET) Received: from localhost ([::1]:44316 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCnj8-0001AM-PA for larch@yhetil.org; Thu, 18 Feb 2021 13:08:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCngg-0007IT-2o for bug-guix@gnu.org; Thu, 18 Feb 2021 13:06:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36379) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCngf-0000cr-QA for bug-guix@gnu.org; Thu, 18 Feb 2021 13:06:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lCngf-0005HR-KB for bug-guix@gnu.org; Thu, 18 Feb 2021 13:06:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#46569: python can't find internal pip modules in environment from manifest Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 18 Feb 2021 18:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46569 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Jelle Licht Received: via spool by 46569-submit@debbugs.gnu.org id=B46569.161367155620286 (code B ref 46569); Thu, 18 Feb 2021 18:06:01 +0000 Received: (at 46569) by debbugs.gnu.org; 18 Feb 2021 18:05:56 +0000 Received: from localhost ([127.0.0.1]:47925 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCnga-0005H8-3E for submit@debbugs.gnu.org; Thu, 18 Feb 2021 13:05:56 -0500 Received: from mail-qk1-f180.google.com ([209.85.222.180]:46442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCngY-0005Gv-C7 for 46569@debbugs.gnu.org; Thu, 18 Feb 2021 13:05:54 -0500 Received: by mail-qk1-f180.google.com with SMTP id w19so2943244qki.13 for <46569@debbugs.gnu.org>; Thu, 18 Feb 2021 10:05:54 -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=juTtzpgs6DvpUhYbFae9tCU3TPyO33QthWKUmEbM4Ts=; b=aKhHx99mPMXnNBZhTv+WSalFQxTmFJLeQMuUgSa0wD067hZxMWJh/HY8HOsuTIcPsr jHrrlcCjLMrxyjk6SX4eMqvAhBUUa+5NcAZzah/IqYEN7QZySkiTfhY/Y9/2PouCBxyI urYD6aj779IeHzKArXBf0dHJdo/9x6rv/INu71FlL7XoTf1lD0bBOVGNMDMdgOTaKDpo 02/tuBrpEqSDk9b+u5gE0R3iMoqvCHRsHX8wSm9aJMH4BNliyvv/Xcb7PaxoC/Hks30/ +42097NI2QbWrl1Yr7F20Thi+Olz58Ul6tAYxgYenkoS86UV1q60Zq7BmSgzhr+1Ubou ZUIA== 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=juTtzpgs6DvpUhYbFae9tCU3TPyO33QthWKUmEbM4Ts=; b=TtuX9Au8nkepPVqMcO+KNR4tYRukvY2VWzgJ1WOFshzJ+81s94B2WAD6Xruhh31PPj jA8JOkc9Xr/YxbuNhodNXX5k3YahrG8K2oLmMVFvDUu1i90us7YeZYMNXiX/9WdLFNlt H7BVE6oECdT+QnSazMFgznfIGflHsv5PRuXK7hCKVhq8MSPc4eI5Rao2qHT7pnpEyJiv lWV2QUJiGd9DdaiM1ERdjZGdF0hO4WEV9JSRcv9riiY402j1LH63SxyKKA47/nqkI5AZ iHIN6XvH0f8MoFfgvdSjGrc3dLl4YWlKdPgGT6Bu35UjUdji8LvHz5Gq1QaJGupjPnfa AF4A== X-Gm-Message-State: AOAM530KOyeS64XGzz1Z1x05/71jvxyh/ncIbx6hV0v/UTWu8xlwjwAb YWFjyWKOeA8AO1n1nnhPJKd5b2fBddGFpA== X-Google-Smtp-Source: ABdhPJzV1FqO1hSw1BUUvY5DaHO2rAsKL3o2TZxWlQjuku6NIe3eApgHfU3WxD+L4Ny2Kg9IKlinYw== X-Received: by 2002:a37:a68a:: with SMTP id p132mr5467040qke.26.1613671548903; Thu, 18 Feb 2021 10:05:48 -0800 (PST) Received: from hurd (dsl-157-68.b2b2c.ca. [66.158.157.68]) by smtp.gmail.com with ESMTPSA id v5sm4458349qkg.47.2021.02.18.10.05.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Feb 2021 10:05:48 -0800 (PST) From: Maxim Cournoyer References: <86czwz7ms3.fsf@fsfe.org> Date: Thu, 18 Feb 2021 13:05:47 -0500 In-Reply-To: <86czwz7ms3.fsf@fsfe.org> (Jelle Licht's message of "Tue, 16 Feb 2021 21:58:20 +0100") Message-ID: <87sg5tuu84.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@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: 0.23 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=aKhHx99m; 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: C445D32C92 X-Spam-Score: 0.23 X-Migadu-Scanner: scn0.migadu.com X-TUID: fXLl4kme/5Fi Hi 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!") > > > and a `manifest.scm' with: > > (use-modules (gnu) (guix packages) > (gnu packages python) > (gnu packages python-xyz)) > > (packages->manifest (list python python-pip)) > > > I can get the expected output by running: > `guix environment --pure --ad-hoc python python-pip -- python3 hi.py' => >> halfwaypoint >> I made it! It seems that two pip versions don't cohabit very well. The same happens if you install pip via 'pip install --user pip' (e.g., to ~/.local/bin) and try to use it. You could try using the pip version that comes bundled with Python itself (e.g, not installing python-pip in the same profile); if it's the only one, it should work. HTH, Maxim