weird problem with offlineimap

Benjamin Slade slade at jnanam.net
Sat Sep 1 03:42:28 BST 2012


I thought it had been resolved, but it turns out not to be. (I've just been
running offlineimap and anything that needs to call it from /usr/local/ )

I searched for stray offlineimap.py's, but nothing turned up. I'm not quite
sure what's wrong, as I made sure that /usr/local is in $PYTHONPATH, and I
have offlineimap running fine on a different, but similar, system.

On 31 August 2012 18:38, Sebastian Spaeth <Sebastian at sspaeth.de> wrote:

> 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
>



-- 
-----------------------------------------------------------------------------------------------------
Dr Benjamin Slade [http://ling.uta.edu/~ben/<http://ling.uta.edu/%7Eben/%20>
]*
*Dept. of Linguistics & TESOL - University of Texas at Arlington

-----------------------------------------------------------------------------------------------------
Stæfcræft & Vyākaraṇa (lingblog) - http://staefcraeft.blogspot.com
The Babbage Files (techblog) - http://babbagefiles.blogspot.com
-----------------------------------------------------------------------------------------------------
Ongietan sceal gleaw hæle         hu gæstlic bið,
þonne ealre þisse worulde wela   weste stondeð.
                                                     --*The Wanderer*, ll.
73-4.
-----------------------------------------------------------------------------------------------------
"While corporations dominate society and write the laws,
  each advance in technology is an opening for them
  to further restrict its users."
                                                       --Stallman's Law
-----------------------------------------------------------------------------------------------------
*           {Choose freedom: choose GNU <http://www.gnu.org> &
Linux<http://www.whylinuxisbetter.net>
.}*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20120831/27e53aae/attachment-0003.html>


More information about the OfflineIMAP-project mailing list