From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kINxFq1QhmNDEQAAbAwnHQ (envelope-from ) for ; Tue, 29 Nov 2022 19:34:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 4ABUFq1QhmMDMwEA9RJhRA (envelope-from ) for ; Tue, 29 Nov 2022 19:34:21 +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 0EC84368E2 for ; Tue, 29 Nov 2022 19:34:20 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p05QW-0005MT-Bl; Tue, 29 Nov 2022 13:33:52 -0500 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 1p05QU-0005M8-7t for help-guix@gnu.org; Tue, 29 Nov 2022 13:33:50 -0500 Received: from koszko.org ([93.95.227.159]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p05QS-0002M1-9z for help-guix@gnu.org; Tue, 29 Nov 2022 13:33:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=koszko.org; s=mail; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=a+IGRQ4Wui8TPJ8pEy+1p0OWBYkxD1x96u5M31Y5S98=; b=txpoZtmSalCNPwOZLysWWL1Olm vcq2JwBn3yRVdFrzLDct+12AbVxekfLEqOZk58vSlegp5cqNe4X/vGmxZV81mYNbgTwguhLW3DXsk g+B3yfJgqLGC2darx1h41+9t5rHmQNWDbpsHBABt7KxnkV7kc7z1q+q75H6ABnZpOrDGtfGTvruAb M990HE6nuTGo/1uFTuuAyoA/9Qk5RNeRnWZ/7xNPgh+14MJxyr7vl55WYO2+lMjXlPj1sEo2L5UiT dI8t5hyp/kAoMJ7j5+pm9U7+aHbjKOq5YTEPWE0Qo200+j1Sp1o49rpl9KLA2bZWNqELy1lcqNDhj QxxMT+d2IQKSnDQfC1iPVgKMXY3g7B5jprR5nZ0O1eEq+eb2NzIhuFSIoNsJm65WAQGL4Sk5sJQzI GGwj4oVwc6W9HCegdDd5Zs0tFfimBOUOJnyR6oO4LEofl/+vNWwnSBGil+KNW8bMh8BfqfBxYsNl4 s1kR1yi7b9RsJl6mXB1T4rKY3+S2N7runjh4qHn/jMWN5BQalNpaZL3SAhoC/ywsfsT3Xlr4CRVLj qyPyVvKeUvV/ERMTi79YFsSXDAj+95jy/dKnFnSGIkbF80QxRjwbgOcmyntOlcR2y/0cdeSx01Bh8 HN6r3TxUcxIM8PNq6H2Tq7aiiSOvOe92VoI6UDwTM=; Received: from [77.252.47.212] (helo=koszkonutek-tmp.pl.eu.org) by koszko.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p05QH-0000jj-Rk; Tue, 29 Nov 2022 19:33:37 +0100 Date: Tue, 29 Nov 2022 19:33:35 +0100 To: mprodrigues@posteo.net Cc: help-guix@gnu.org Subject: Re: Problem loading numpy and other on a venv in a guix system Message-ID: <20221129193335.1f263845@koszkonutek-tmp.pl.eu.org> In-Reply-To: <3ee102246f0716dc9e4d1330062639ca@posteo.net> References: <3ee102246f0716dc9e4d1330062639ca@posteo.net> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/cLQLYN+ZnxQ/Z9s7Lcky714"; protocol="application/pgp-signature"; micalg=pgp-sha256 Received-SPF: pass client-ip=93.95.227.159; envelope-from=koszko@koszko.org; helo=koszko.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Wojtek Kosior From: Wojtek Kosior via Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org 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=1669746861; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=a+IGRQ4Wui8TPJ8pEy+1p0OWBYkxD1x96u5M31Y5S98=; b=gkPtuSdu38u6gU9Mjl783VAHPO6u4q0Yqm6xoE9mMqVxhGmsrg6RwGIt6Pf916b3CgJWky h4qwqOdWUF24FcP6RgPpjy2IwENP9Ejdp93gjt2hEYYUcsYysI57UYabsL172pmBpJoPAw tiiQGh720F5SKZVft1ZFNOi+fAQXJcixo4LAZO9hA5P+0d4BPn3RmoxT2pXaT3SkdJRk7I eB77w1ZJK8oBclPfp8DdyAeifSAekrpfQXKe5Wt903T8oErtktIcN/o/+2JXUiQmQVPbIf aO2czB8O20MED80iT2ck6a9JQt/VOwHLABIB9IQZeXS4vPRHjAsZeW8bg+Fjmw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669746861; a=rsa-sha256; cv=none; b=GrMbLYBtD3waQ5obvv2X9VPYLkt+zfPSXh/VyfzIl7VWzC1Fu4Nbkkux1MNkDv2L37B7Su zUTkrxTMWRdDZ/iW7ynye7/nzJDWttK9oZd2ECxK5nkVzI0zufjBpQaisNv9xo+Hlf7TKp ZGO1pmcXgcjoafR9rmWWeqTlMG6OSPBXf3h/2K1QE8MP9XmBbgPgND1akQXPD55iOip146 KjYpKnU6TXYRRm2oM13X2qxVjUPVPIA/InCT5wlCvIfY9kvM4ArQnvaqxqd0AILr9G/U4s uhkRiAyB1tMhSnyjXeo/HwRM1doFI73ejskBIsclQ8XLVSwIzl41CnA5AiwAGQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=txpoZtmS; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.96 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=txpoZtmS; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0EC84368E2 X-Spam-Score: -4.96 X-Migadu-Scanner: scn0.migadu.com X-TUID: Lv/oLms0bBzS --Sig_/cLQLYN+ZnxQ/Z9s7Lcky714 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Mateus! Indeed, when using virtualenv's numpy, this python3 -c 'import numpy' fails with the error you posted. I seem to have been able to make numpy happy by instead running Python like LD_LIBRARY_PATH=3D/gnu/store/8qv5kb2fgm4c3bf70zcg9l6hkf3qzpw9-zlib-1.2.= 11/lib/ python3 -c 'import numpy' If you use the `--container` and `--emulate-fhs` options to `guix shell`, it is also possible to instead do LD_LIBRARY_PATH=3D/usr/lib/ python3 -c 'import numpy' The `libz` guix package still needs to be included among the packages passed to `guix shell` in this last case. Also, given you're using virtualenv, you might find the `--network` option to `guix shell` useful :) I hope there isn't any dumb mistake in my solution... Good luck :) Wojtek -- (sig_start) website: https://koszko.org/koszko.html PGP: https://koszko.org/key.gpg fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A Meet Krak=C3=B3w saints! #27: blessed Maria Klemensa Staszewska Poznaj =C5=9Bwi=C4=99tych krakowskich! #27: b=C5=82ogos=C5=82awiona Maria = Klemensa Staszewska https://pl.wikipedia.org/wiki/Maria_Klemensa_Staszewska -- (sig_end) On Tue, 29 Nov 2022 16:42:14 +0000 mprodrigues@posteo.net wrote: > Hello, >=20 > I've been using a guix shell with a couple of python packages and it=20 > works fine, > however I'd also like to keep the option of using a virtualenv if=20 > possible, the > thing is I'm having problem running modules like numpy, that depend on=20 > non > python dependencies. The error I get when I try to load numpy in a venv=20 > is: >=20 > Importing the numpy C-extensions failed. This error can happen for many=20 > reasons, > often due to issues with your setup or how NumPy was installed. >=20 > and in the end: >=20 > Original error was: libz.so.1: cannot open shared object file: No such=20 > file or > directory >=20 > I have tried installing zlib directly, also tried to add my default=20 > profile libs > path to the venv PATH, but to no avail until now. How can I solve this?= =20 > Or > maybe someone can point me in the direction that I have to take to=20 > properly > debug this. >=20 > Best regards, > Mateus Rodrigues >=20 --Sig_/cLQLYN+ZnxQ/Z9s7Lcky714 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTpcnBg48VjfIpPS0JLxSIcWnn9GgUCY4ZQfwAKCRBLxSIcWnn9 Gqt2AQDlTMJ/GM8keZqkzhEwFNP/+/W2lni5QYrKmbW5PX76WgD/eXzv3v+kXaaE 8MCZGIhDFfTKn5Gmc6glnKaGob7UEg8= =pI2E -----END PGP SIGNATURE----- --Sig_/cLQLYN+ZnxQ/Z9s7Lcky714--