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 ms0.migadu.com with LMTPS id WDdSNz7PnmEdyQAAgWs5BA (envelope-from ) for ; Thu, 25 Nov 2021 00:48:14 +0100 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 UIQRMz7PnmG/QAAAB5/wlQ (envelope-from ) for ; Wed, 24 Nov 2021 23:48:14 +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 8E78CA638 for ; Thu, 25 Nov 2021 00:48:14 +0100 (CET) Received: from localhost ([::1]:39476 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mq1zp-0006Z5-Pp for larch@yhetil.org; Wed, 24 Nov 2021 18:48:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mq1ze-0006YB-MD for bug-guix@gnu.org; Wed, 24 Nov 2021 18:48:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43697) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mq1ze-00009x-EA for bug-guix@gnu.org; Wed, 24 Nov 2021 18:48:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mq1ze-0003Iq-76 for bug-guix@gnu.org; Wed, 24 Nov 2021 18:48:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#30229: Python modules installed by pip in virtualenv can't find shared objects. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 24 Nov 2021 23:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30229 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ricardo Wurmus Received: via spool by 30229-submit@debbugs.gnu.org id=B30229.163779765511987 (code B ref 30229); Wed, 24 Nov 2021 23:48:02 +0000 Received: (at 30229) by debbugs.gnu.org; 24 Nov 2021 23:47:35 +0000 Received: from localhost ([127.0.0.1]:55239 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mq1zD-000370-02 for submit@debbugs.gnu.org; Wed, 24 Nov 2021 18:47:35 -0500 Received: from mail-wr1-f46.google.com ([209.85.221.46]:42830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mq1z9-0002yh-MB for 30229@debbugs.gnu.org; Wed, 24 Nov 2021 18:47:34 -0500 Received: by mail-wr1-f46.google.com with SMTP id c4so7436780wrd.9 for <30229@debbugs.gnu.org>; Wed, 24 Nov 2021 15:47:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=j1Ynvo4jn29QErMe6/rasEq2cd1nAJk2eVAUj0rh2IM=; b=dpDHKsHjipeNf8NW/EcVD98rN92sGPBVIXNUFhq9ehqH0xmBN59rm9FJvTXwLPB0RU 7wS4XmtSiyi0Efqeb08dgeR+r/vhPdRasMCUWexEEqXGNgLcBtOosrTyQUcQ2x4QjD02 E3mQQ6AQzaU0qi6QaKEAbe7ZtJCwrfLT3ArKmracnE29XgQJ57r+aRR3TSywz+JS32+t QQ3uCguAAPAXceBIDw2h2bciSj0ynxquSQNS8wENgIul1QdHLjLuUmPmRq458fpxSv/5 GAsNE2VA2giQ7Xcn2qGe2bpuq0SpIZOGMMVqR1NbOkIpJy2oAUgsHshRjx12395cY/J9 fZuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=j1Ynvo4jn29QErMe6/rasEq2cd1nAJk2eVAUj0rh2IM=; b=3wA1QPJnzwmizMw4d2jBoRspf+mnusvCWXqxosmdvcXFsRcpdd3j5Yr56yUo4IA+5T /aTuplYKgKZqqP5iS2YDpjB3C5zcqRtR3fCMTAGO4k6vHZ41QgjAWVZrqD+DphvS8EGG l6uoEHXnHOJ1tDA72Z078ZWNT8VK9ht3I702OJrDHjqsJR02F719KEn6uxSjRm+lJc2k f+8ox8UJwFJcNdNn5K1fFGkrFcpVqMQSPn1h35ZldBhql3OHBhKtxo6pfhzGRMq0xaGb W+5lg+2S5n/Aq+MEZh7LagH65hhRWOhs5lPleS1nL6g66l4fNb8S7CHnG68+/7NKkILW jFeg== X-Gm-Message-State: AOAM532fxLA5DLgXCNPQvxDEwDNCNgWQWHAjm47r5leDeJtKtQd+9g+q v15vA0RGzujNQvamqtRTUl+eVxvWg0A= X-Google-Smtp-Source: ABdhPJzo86CXnZTddYYi8V01YI3GnpTb6D2xtyAfO4BQeKRrJ9zry3uEVaRB1q7tawpVIknMPHIyJg== X-Received: by 2002:a5d:4408:: with SMTP id z8mr1247951wrq.551.1637797645768; Wed, 24 Nov 2021 15:47:25 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id z15sm1107339wrr.65.2021.11.24.15.47.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 15:47:25 -0800 (PST) From: zimoun References: <87h8rczsx3.fsf@elephly.net> Date: Thu, 25 Nov 2021 00:39:21 +0100 In-Reply-To: <87h8rczsx3.fsf@elephly.net> (Ricardo Wurmus's message of "Tue, 23 Jan 2018 13:00:24 +0100") Message-ID: <867dcxt97a.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) 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: , Cc: 30229@debbugs.gnu.org, Fis Trivial 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=1637797694; 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=j1Ynvo4jn29QErMe6/rasEq2cd1nAJk2eVAUj0rh2IM=; b=ZyP04JpPYVvsKCbi/TVM9ULutAO36oOjczi6jNh78Rqa+lf7rt5VBBeW2DT7W5FdGmQ32Z F4t5TVFjXDxA+lRD2JDbMeF5nV+WXYw27a3lHOypZm3HaYhoRkRSzhoj8Dd96paeNeuyGH oz9JFE0fGArHCZZ6FfnUSsbsK5HDNsvXa2A63Hn72FOkkwCXRg6hXjIJAvE06HRrkFgg6o qHPxlCfopxpunzKLfbusQNBoqh2cM2OTrm712wItv/DxggB/gc4pQ+rSy0Tb+iQZjeDn+O z4PzkMpWSBcNi6wotIVh8wKBX1GUWr3+ajyLwmL4KLg4FvWWbRF7DbbVxN9bjQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637797694; a=rsa-sha256; cv=none; b=BpdSwKzkJWtsfiU89WEqUz8O8FHaJW2YIvzCGMNF4h0oJX/rv96izgupotn0KVkN9Km6UX 9M1O9a/MMvt3gTyHGW4AsgsgCcEZQyrlrTqQnG5kWiIdgKtZa2PasLgPUWASfy0/BOM4K5 Ap23Y9mSudYRy/5dQoKE5rjSzweN+s0AZwaMc7R0wwZ3Wv9UUY9MeJ1GeThQ3JNLM+MwFB nr5yDy2X4LdzK3amB5ZrGa5fmA56KV3ZHDEByJ2iJ0Y3fheyCV4hYLa1UwNWehMHy2sZkN s8hwTxS2xbkJ5znOpX+XM6JLVB1op+N2gFEGR03TLDzHvQxiDn6Q/dGqojDfgA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=dpDHKsHj; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: -1.79 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=dpDHKsHj; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 8E78CA638 X-Spam-Score: -1.79 X-Migadu-Scanner: scn0.migadu.com X-TUID: r/zwu3L4j2A3 Hi, On Tue, 23 Jan 2018 at 13:00, Ricardo Wurmus wrote: >> When a python module needs to load a dynamic shared object, it looks in = the >> path provided by *LD_LIBRARY_PATH*(1), but guix doesn't modify this envi= ronment >> variable to export the needed path for python. > > We cannot set this environment variable by default lest we break other > packages that may be installed. LD_LIBRARY_PATH is dangerous as it > tells the runtime linker to prefer libraries in the specified > directories. > > For Guix packages we use different means to embed store paths in > binaries, which are looked up at runtime. For binaries that=E2=80=99s ac= hieved > with RUNPATH; for others we patch the sources to ensure that libraries > are not looked up merely by name but by absolute path. > > In your particular case (installing packages without Guix) I think the > best way is to manually set LD_LIBRARY_PATH on demand, or to set > LD_PRELOAD to the specific libraries that are required. > > In general, though, I recommend using Guix for package management and > development instead of virtualenv and pip. Regarding the improvements of =E2=80=99guix import pypi=E2=80=99 since 2018= , and because tweaking LD_LIBRARY_PATH is dangerous, I do not see what could be the next action to solve this. Therefore, I propose to close it. WDYT? Cheers, simon