weird problem with offlineimap

Benjamin Slade slade at
Fri Aug 24 22:11:31 BST 2012

I take it back. Adding apparently relevant directories to the PYTHONPATH variable hasn't actually helped.

I tried all of these, and still it says it can't import unless I've called it from inside some offlineimap directory:


Eygene Ryabinkin writes:

> Fri, Aug 24, 2012 at 11:59:14AM -0500, Benjamin Slade wrote:
>> On my own system, I'm having an odd problem with offlineimap. I've cloned
>> the git repository, and done a system-wide install via "make clean",
>> "make", "sudo python install".
> Where OfflineIMAP stuff gets installed?
>> If I call "offlineimap" from any location other than than inside of the
>> downloaded git repo (e.g. from the commandline while in my home directory,
>> for instance), I get the following error:
>> 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.  Does the output of
> {{{
> python -c 'import sys; print sys.path'
> }}}
> contain the directory where your OfflineIMAP installation lives.
> Something like '/usr/local/lib/python2.6/site-packages'.
>> If I call "offlineimap" while I'm inside of the git repo, then
>> everything works as expected.
> Because Python looks for the imports in the current directory too.

Dr Benjamin Slade [ ]
  Dept. of Linguistics & TESOL - University of Texas at Arlington                
    132E Hammond Hall | Office Hours: tba
                   {sent from Emacs running under GNU/Linux}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the OfflineIMAP-project mailing list