Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

offlineimap 7.0.3 thread terminated with exception #364

Closed
akmassey opened this issue Jul 30, 2016 · 2 comments
Closed

offlineimap 7.0.3 thread terminated with exception #364

akmassey opened this issue Jul 30, 2016 · 2 comments

Comments

@akmassey
Copy link

I'm getting a thread-related error on offlineimap 7.0.3 that I wasn't getting with offlineimap 7.0.2:

OfflineIMAP 7.0.3
  Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)
Thread 'Account sync Gmail' terminated with exception:
Traceback (most recent call last):
  File "/usr/local/Cellar/offlineimap/7.0.3/libexec/offlineimap/threadutil.py", line 163, in run
    Thread.run(self)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/Cellar/offlineimap/7.0.3/libexec/offlineimap/accounts.py", line 256, in syncrunner
    self.remoterepos = Repository(self, 'remote')
  File "/usr/local/Cellar/offlineimap/7.0.3/libexec/offlineimap/repository/__init__.py", line 84, in __new__
    return repo(name, account)
  File "/usr/local/Cellar/offlineimap/7.0.3/libexec/offlineimap/repository/Gmail.py", line 39, in __init__
    IMAPRepository.__init__(self, reposname, account)
  File "/usr/local/Cellar/offlineimap/7.0.3/libexec/offlineimap/repository/IMAP.py", line 41, in __init__
    self.imapserver = imapserver.IMAPServer(self)
  File "/usr/local/Cellar/offlineimap/7.0.3/libexec/offlineimap/imapserver.py", line 96, in __init__
    None if self.preauth_tunnel else repos.gethost()
  File "/usr/local/Cellar/offlineimap/7.0.3/libexec/offlineimap/repository/Gmail.py", line 48, in gethost
    return super(GmailRepository, self).gethost()
TypeError: super() argument 1 must be type, not classobj

I took a look at the commit 44a8cf3, but I didn't see anything obvious that could have caused this. Then again, I'm not a python programmer.

I reverted to offlineimap 7.0.2 and I can confirm that works without the thread exception on the same configuration files.

@nicolas33
Copy link
Member

nicolas33 commented Jul 30, 2016

The fix is in the next branch. This duplicates #363 but I agree the title of this issue is not specific enough to find it.

Thanks for the report!

@nicolas33
Copy link
Member

nicolas33 commented Jul 30, 2016

To make it simple, we can't use advanced inheritance features like super() if the parents are not new-style classes (explicitely inherit from object).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants