Complete.Org: Mailing Lists: Archives: offlineimap: October 2004:
TypeError and AssertionError raised
Home

TypeError and AssertionError raised

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: offlineimap@xxxxxxxxxxxx
Subject: TypeError and AssertionError raised
From: Stuart Bishop <stuart@xxxxxxxxxxxxxxxx>
Date: Tue, 05 Oct 2004 15:59:40 +1000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm trying to sync the IMAP server at fastmail.fm to a local Courier
IMAP server using offlineimap 4.0.6 and Python 2.3.4. I have yet to
complete my initial run of offlineimap 4.0.6 - there appear to be some
messages it is falling over on:

Thread 'New msg sync from INBOX' terminated with exception:
Traceback (most recent call last):
~  File "/usr/lib/python2.3/site-packages/offlineimap/threadutil.py",
line 153, in run
~    Thread.run(self)
~  File "/usr/lib/python2.3/threading.py", line 416, in run
~    self.__target(*self.__args, **self.__kwargs)
~  File "/usr/lib/python2.3/site-packages/offlineimap/folder/Base.py",
line 204, in syncmessagesto_neguid_msg
~    message = self.getmessage(uid)
~  File "/usr/lib/python2.3/site-packages/offlineimap/folder/UIDMaps.py",
line 131, in getmessage
~    return self._mb.getmessage(self, self.r2l[uid])
~  File "/usr/lib/python2.3/site-packages/offlineimap/folder/IMAP.py",
line 110, in getmessage
~    return imapobj.uid('fetch', '%d' % uid,
'(BODY.PEEK[])')[1][0][1].replace("\r\n", "\n")
TypeError: unsubscriptable object


No debug messages were logged for New msg sync from INBOX.
Unhandled exception in thread started by <bound method
InstanceLimitedThread.__bootstrap of <InstanceLimitedThread(New msg sync
from INBOX.Canonical.Discussion, stopped daemon)>>
Traceback (most recent call last):
~  File "/usr/lib/python2.3/threading.py", line 451, in __bootstrap
~    self.__stop()
~  File "/usr/lib/python2.3/threading.py", line 460, in __stop
~    self.__block.notifyAll()
~  File "/usr/lib/python2.3/threading.py", line 256, in notifyAll
~    self.notify(len(self.__waiters))
~  File "/usr/lib/python2.3/threading.py", line 238, in notify
~    currentThread() # for side-effect
TypeError: 'NoneType' object is not callable



I'm also occasionally seeing this AssertionError being raised:


Thread 'New msg sync from INBOX.Misc.Lists' terminated with exception:
Traceback (most recent call last):
~  File "/usr/lib/python2.3/site-packages/offlineimap/threadutil.py",
line 153, in run
~    Thread.run(self)
~  File "/usr/lib/python2.3/threading.py", line 416, in run
~    self.__target(*self.__args, **self.__kwargs)
~  File "/usr/lib/python2.3/site-packages/offlineimap/folder/Base.py",
line 207, in syncmessagesto_neguid_msg
~    successuid = tryappend.savemessage(uid, message, flags)
~  File "/usr/lib/python2.3/site-packages/offlineimap/folder/IMAP.py",
line 219, in savemessage
~    date, content)[0] == 'OK')
AssertionError


Last 11 debug messages logged for New msg sync from INBOX.Misc.Lists
prior to exception:
imap: savemessage: called
imap: savemessage: using date " 5-Oct-2004 15:47:06 +1000"
imap: savemessage: initial content is: '7'
imap: savemessage: new headers are:
X-OfflineIMAP-1790921346-52656d6f7465466173746d61696c-494e424f582e4d6973632e4c69737473:
1096955226-0160673466791-v4.0.6
imap: savemessage_addheader: called to add
X-OfflineIMAP-1790921346-52656d6f7465466173746d61696c-494e424f582e4d6973632e4c69737473:
1096955226-0160673466791-v4.0.6
imap: savemessage_addheader: insertionpoint = -1
imap: savemessage_addheader: leader = ''
imap: savemessage_addheader: newline =
'X-OfflineIMAP-1790921346-52656d6f7465466173746d61696c-494e424f582e4d6973632e4c69737473:
1096955226-0160673466791-v4.0.6'imap: savemessage_addheader: trailer = '7'
imap: savemessage: new content is:
'X-OfflineIMAP-1790921346-52656d6f7465466173746d61696c-494e424f582e4d6973632e4c69737473:
1096955226-0160673466791-v4.0.67'
imap: savemessage: new content length is 120


Any suggestions? Is these bugs that need fixing in offlineimap, or
something peculiar in my setup?

- --
Stuart Bishop <stuart@xxxxxxxxxxxxxxxx>
http://www.stuartbishop.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBYjhMAfqZj7rGN0oRAmjTAJ9jyiGXXuq2FYU/j9C6MYmOnMw95gCeIlJU
aPy/9RvM/r7xsLngxqVVxgw=
=/yRA
-----END PGP SIGNATURE-----


[Prev in Thread] Current Thread [Next in Thread]