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

GMail repository fails to synchronize on python 2.7 #363

Closed
jpalus opened this issue Jul 30, 2016 · 4 comments
Closed

GMail repository fails to synchronize on python 2.7 #363

jpalus opened this issue Jul 30, 2016 · 4 comments
Labels

Comments

@jpalus
Copy link

jpalus commented Jul 30, 2016

Relevant error which appears to be caused by removing inheritance from object in BaseRepository (88e8a48):

Thread 'Account sync Gmail' terminated with exception:
Traceback (most recent call last):
  File "/usr/share/python2.7/site-packages/offlineimap/threadutil.py", line 163, in run
  File "/usr/lib64/python2.7/threading.py", line 754, in run
  File "/usr/share/python2.7/site-packages/offlineimap/accounts.py", line 256, in syncrunner
  File "/usr/share/python2.7/site-packages/offlineimap/repository/__init__.py", line 84, in __new__
  File "/usr/share/python2.7/site-packages/offlineimap/repository/Gmail.py", line 39, in __init__
  File "/usr/share/python2.7/site-packages/offlineimap/repository/IMAP.py", line 41, in __init__
  File "/usr/share/python2.7/site-packages/offlineimap/imapserver.py", line 96, in __init__
  File "/usr/share/python2.7/site-packages/offlineimap/repository/Gmail.py", line 48, in gethost
TypeError: must be type, not classobj


Last 2 debug messages logged for Account sync Gmail prior to exception:
nicolas33 added a commit to nicolas33/offlineimap that referenced this issue Jul 30, 2016
Github-fix: OfflineIMAP#363
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
@nicolas33 nicolas33 added the bug label Jul 30, 2016
@nicolas33
Copy link
Member

nicolas33 commented Jul 30, 2016

My bad. I forgot the parent. Does above patch fix the issue?

@nicolas33 nicolas33 added this to the next minor (bug fixes) milestone Jul 30, 2016
@jpalus
Copy link
Author

jpalus commented Jul 30, 2016

Works fine, thanks.

@nicolas33
Copy link
Member

Applied. Thank you much @jpalus !

@nicolas33
Copy link
Member

v7.0.4 is out.

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

No branches or pull requests

2 participants