weird problem with offlineimap

Benjamin Slade slade at jnanam.net
Fri Aug 24 21:54:07 BST 2012


Ah, I see.

Yes, I needed to add the offlineimap installation directory to the $PYTHONPATH variable.

Specifically: /usr/local/lib/python2.7/dist-packages/offlineimap/repository

Thanks!

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 setup.py 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 [ http://ling.uta.edu/~ben/ ]
  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: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20120824/86ec711c/attachment-0003.html>


More information about the OfflineIMAP-project mailing list