offlineimap/ssl problem

Jamie Griffin jpg at gmx.com
Wed Mar 11 02:54:30 PDT 2009


Hi

The earlier problem i had with md5 import was sorted by Brians advice to install the py25-hashlib port. 

Now, i've got an issue when the option ssl = yes is set in the .offlinimaprc

Here's the error output:
-----------------------------------------------------------------------
Thread 'Account sync GMX' terminated with exception:
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/offlineimap/threadutil.py", line 149, in run
    Thread.run(self)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/threading.py", line 446, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/offlineimap/accounts.py", line 108, in syncrunner
    self.sync()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/offlineimap/accounts.py", line 142, in sync
    remoterepos.syncfoldersto(localrepos, [statusrepos])
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/offlineimap/repository/Base.py", line 135, in syncfoldersto
    srcfolders = src.getfolders()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/offlineimap/repository/IMAP.py", line 194, in getfolders
    imapobj = self.imapserver.acquireconnection()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/offlineimap/imapserver.py", line 224, in acquireconnection
    self.sslclientkey, self.sslclientcert)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/imaplib.py", line 1128, in __init__
    IMAP4.__init__(self, host, port)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/imaplib.py", line 163, in __init__
    self.open(host, port)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/offlineimap/imapserver.py", line 65, in open
    imaplibutil.new_open_ssl(self, host, port)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/offlineimap/imaplibutil.py", line 172, in new_open_ssl
    self.sslobj = socket.ssl(self.sock._sock, self.keyfile, self.certfile)
AttributeError: 'module' object has no attribute 'ssl'
--------------------------------------------------------------------------

I'm not sure what might be causing this, again, is anyone able to give any advice. I understand i may need to ask on the 'offlineimap list', any information would b appreciated. 

Jamie
 


More information about the macports-users mailing list