In trying to use offlineimap under Linux, I am now getting the following error:
Traceback (most recent call last):
File "/usr/bin/offlineimap", line 20, in <module>
from offlineimap import OfflineImap
ImportError: cannot import name OfflineImap
No matter what I do. I wasn’t originally getting this error, but I’ve tried purging and reinstalling offlineimap (and deleting .offlineimap) and it doesn’t seem to help.
well, first thing first: does it work from the interactive python interpreter?
Are you using virtualenv? Maybe you have offlineimap installed in a virtualenv and are trying to call it globally.
At last, I would check if the offlineimap.py file defines the OfflineImap class (or module?)