From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?QmrDtnJuIEjDtmZsaW5n?= Subject: Re: Python: Error loading shared library in Guix Date: Tue, 19 Mar 2019 19:04:29 +0100 Message-ID: <20190319190429.646199b0@alma-ubu> References: <20190319152519.1caef235@alma-ubu> <8736nincg6.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/U8m2sA2_WQtLvO1_Mb5_JCD"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:60719) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6JKN-0005vS-Vn for guix-devel@gnu.org; Tue, 19 Mar 2019 14:19:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h6J6H-0005Mr-0o for guix-devel@gnu.org; Tue, 19 Mar 2019 14:04:33 -0400 Received: from m4s11.vlinux.de ([83.151.27.109]:33544 helo=bjoernhoefling.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6J6G-0005Lq-Jd for guix-devel@gnu.org; Tue, 19 Mar 2019 14:04:32 -0400 In-Reply-To: <8736nincg6.fsf@elephly.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ricardo Wurmus Cc: guix-devel --Sig_/U8m2sA2_WQtLvO1_Mb5_JCD Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, 19 Mar 2019 15:52:41 +0100 Ricardo Wurmus wrote: > Using the full file name would work, for example: >=20 > ./pre-inst-env guix environment --ad-hoc python zlib -- \ > python3 -c "import os; import ctypes; > libz=3Dctypes.CDLL(os.environ['GUIX_ENVIRONMENT']+'/lib/libz.so.1')" Right! With a "substitute*", I can inject the full path and then it works. Thanks, Bj=C3=B6rn --Sig_/U8m2sA2_WQtLvO1_Mb5_JCD Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQiGUP0np8nb5SZM4K/KGy2WT5f/QUCXJEvLQAKCRC/KGy2WT5f /Z75AKCYLbFPGGnlqgW5c3OGfjh1lnC+DQCfemu0/L6stxZXAedYHhBOT9IUVlA= =GsNx -----END PGP SIGNATURE----- --Sig_/U8m2sA2_WQtLvO1_Mb5_JCD--