From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: OfflineIMAP and Python Date: Tue, 21 Apr 2015 17:47:22 +0200 Message-ID: References: <87iocp21nd.fsf@denknerd.org> <87a8y1ijat.fsf@gnu.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]:58442) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkaOb-0000Io-RM for guix-devel@gnu.org; Tue, 21 Apr 2015 11:47:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YkaOZ-0006fR-5o for guix-devel@gnu.org; Tue, 21 Apr 2015 11:47:33 -0400 In-Reply-To: <87a8y1ijat.fsf@gnu.org> 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: Guix-devel Ludovic Court=C3=A8s writes: >>> ImportError: /gnu/store/zla3af321lkf2n80330fw81mxgbz1gj3-python-2.7.6= /lib/python2.7/lib-dynload/operator.so: undefined symbol: _PyUnicodeUCS2_= AsDefaultEncodedString >> >> This usually happens when you use the wrong python. > > The =E2=80=98python=E2=80=99 executable is necessarily the right one, b= ecause it=E2=80=99s > written in the shebang, and this operator.so is the right one too. True. The reason why it happens in my setup is that my ~/.offlineimaprc contains the settings: [general] pythonfile =3D ~/.offlineimap.py ... This Python script has a shebang "#!/usr/bin/env python", so when offlineimap runs the script the wrong python executable might be loaded (dependent on PATH). (I realise that this probably isn't a common setup, so my suggestion to check the python executable wasn't very helpful.) ~~ Ricardo