From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: OfflineIMAP and Python Date: Thu, 23 Apr 2015 21:04:04 +0200 Message-ID: <87tww6d5uj.fsf@gnu.org> References: <87iocp21nd.fsf@denknerd.org> <87a8y1ijat.fsf@gnu.org> <87vbgn87ig.fsf@denknerd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlMQ1-0000C9-6G for guix-devel@gnu.org; Thu, 23 Apr 2015 15:04:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlMPw-0004Mz-6U for guix-devel@gnu.org; Thu, 23 Apr 2015 15:04:13 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46738) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlMPw-0004Ml-3E for guix-devel@gnu.org; Thu, 23 Apr 2015 15:04:08 -0400 In-Reply-To: <87vbgn87ig.fsf@denknerd.org> (Paul van der Walt's message of "Thu, 23 Apr 2015 12:27:03 +0200") 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Paul van der Walt Cc: Guix-devel Paul van der Walt skribis: > On 2015-04-21 at 17:37, quoth Ludovic Court=C3=A8s: >> The =E2=80=98python=E2=80=99 executable is necessarily the right one, be= cause it=E2=80=99s >> written in the shebang, and this operator.so is the right one too. >> >> It could be that the wrong libpython was loaded, though. > > Okay, i had some more time to look into this. First, i applied Ricardo's > change -- i also use the 'pythonfile' option. I've changed that file's > first line to read > > #!/usr/bin/env python But I suspect that gives you /usr/bin/python instead of /home/paul/.guix-profile/bin/python no? Changing the shebang to explicitly use the latter would be safer. >> Could you run =E2=80=98strace -o log offlineimap=E2=80=99 and then: >> >> grep 'open.*\.so.*=3D [0-9]' log > > That gives me > > -------------8<----------------------- > open("/usr/lib/libreadline.so.6", O_RDONLY|O_CLOEXEC) =3D 3 > open("/usr/lib/libhistory.so.6", O_RDONLY|O_CLOEXEC) =3D 3 > open("/usr/lib/libncursesw.so.5", O_RDONLY|O_CLOEXEC) =3D 3 > open("/usr/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) =3D 3 The =E2=80=98execve=E2=80=99 before would probably show us that /usr/bin/py= thon is running I suppose. Ludo=E2=80=99.