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

Iain Dalton iain.dalton at gmail.com
Sun Apr 10 22:45:46 BST 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
------------------------------------------------------------




More information about the OfflineIMAP-project mailing list