TypeError: __init__() got an unexpected keyword argument 'timeout'

dtk d.t.k at gmx.de
Sun Apr 10 23:30:49 BST 2011


Hey Iain,

please cf http://comments.gmane.org/gmane.mail.imap.offlineimap.general/3200

you are not alone ;P
dtk


Excerpts from Iain Dalton's message of Sun Apr 10 23:45:46 +0200 2011:
> I'm using the latest offlineimap from Git. Here's a log of my brief session:
>
> ------------------------------------------------------------
> $ ./offlineimap.py
>  OfflineIMAP 6.3.2
> Copyright (C) 2002 - 2010 John Goerzen <john at complete.org>
>
> This software comes with ABSOLUTELY NO WARRANTY; see the file
> COPYING for details.  This is free software, and you are welcome
> to distribute it under the conditions laid out in COPYING.
> Account sync gmail:
>  ***** Processing account gmail
>  Copying folder structure from Gmail to MappedIMAP
>  Establishing connection to imap.gmail.com:993.
> Remote: Enter password:
>  Establishing connection to tunnel:/usr/sbin/dovecot --exec-mail imap.
>  WARNING: Error occured attempting to sync account gmail: Traceback
> (most recent call last):
>   File "/home/iain/Applications/offlineimap/offlineimap/accounts.py",
> line 207, in syncrunner
>     self.sync(siglistener)
>   File "/home/iain/Applications/offlineimap/offlineimap/accounts.py",
> line 246, in sync
>     remoterepos.syncfoldersto(localrepos, [statusrepos])
>   File "/home/iain/Applications/offlineimap/offlineimap/repository/Base.py",
> line 122, in syncfoldersto
>     destfolders = dest.getfolders()
>   File "/home/iain/Applications/offlineimap/offlineimap/repository/IMAP.py",
> line 242, in getfolders
>     imapobj = self.imapserver.acquireconnection()
>   File "/home/iain/Applications/offlineimap/offlineimap/imapserver.py",
> line 200, in acquireconnection
>     timeout=socket.getdefaulttimeout())
> TypeError: __init__() got an unexpected keyword argument 'timeout'
> ------------------------------------------------------------
>
> And here's my .offlineimaprc:
>
> ------------------------------------------------------------
> [general]
> # ui = Noninteractive.Basic
> accounts = gmail
>
> [Account gmail]
> localrepository = Local
> remoterepository = Remote
> autorefresh = 1
> readonly = True
>
> [Repository Local]
> type = IMAP
> preauthtunnel = /usr/sbin/dovecot --exec-mail imap
> # localfolders = ~/Archive/Mail
>
> [Repository Remote]
> type = Gmail
> remoteuser = iain.dalton at gmail.com
> realdelete = no

--
Please use my PGP key to verify the signature of this mail
and encrypt mails for me:

pub   4096R/5E65930D 2009-04-27 [expires: 2011-04-25]
fpr   524B DC51 1D19 9943 1963  D00B 7AF6 BB87 5E65 930D




More information about the OfflineIMAP-project mailing list