weird problem with offlineimap

Sebastian Spaeth Sebastian at SSpaeth.de
Fri Aug 31 23:38:11 UTC 2012


Eygene Ryabinkin <rea-fbsd at codelabs.ru> writes:

>> Traceback (most recent call last):
>>   File "/usr/local/bin/offlineimap", line 20, in <module>
>>     from offlineimap import OfflineImap
>> ImportError: cannot import name OfflineImap
>
> Seems like your OfflineIMAP installation path isn't in the Python's
> search path.

Hi,
has your problem been solved? You probably have a stale offlineimap.py
somewhere on your system that is old.

When in the offlineimap directory, it will prefer the local version
first, that is why it works. When python searches along its standard
paths, it finds one offlineimap package (or you would have gotten the
error message "no module named offlineimap"). So your python finds an
offlineimap.py, but one that does not contain the class OfflineImap.

Search your system for instances of offlineimap.py. Somewhere there is
one, I bet.

Let us know if my hunch was right.
Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/offlineimap-project/attachments/20120901/a84ba3f8/attachment.pgp>


More information about the OfflineIMAP-project mailing list