Ludovic Courtès 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 ‘python’ executable is necessarily the right one, because it’s
> 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 = ~/.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