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

OpenSSL.SSL.Error from imapclient #6

Open
wangeek opened this issue Aug 10, 2017 · 1 comment
Open

OpenSSL.SSL.Error from imapclient #6

wangeek opened this issue Aug 10, 2017 · 1 comment

Comments

@wangeek
Copy link

wangeek commented Aug 10, 2017

Hi, there. When i try to login mail server with ssl =True, I meet this:

Traceback (most recent call last):
  File "main.py", line 103, in <module>
    mailbot = MailBot('imap.xxx.com', '[email protected]', ******',ssl=True)
  File "E:\Python27\lib\site-packages\mailbot\mailbot.py", line 33, in __init__
    ssl=ssl, stream=stream)
  File "E:\Python27\lib\site-packages\imapclient\imapclient.py", line 152, in __init__
    self._imap = self._create_IMAP4()
  File "E:\Python27\lib\site-packages\imapclient\imapclient.py", line 164, in _create_IMAP4
    self._timeout)
  File "E:\Python27\lib\site-packages\imapclient\tls.py", line 171, in __init__
    imaplib.IMAP4.__init__(self, host, port)
  File "E:\Python27\lib\imaplib.py", line 173, in __init__
    self.open(host, port)
  File "E:\Python27\lib\site-packages\imapclient\tls.py", line 177, in open
    self.sock = wrap_socket(sock, self.ssl_context, host)
  File "E:\Python27\lib\site-packages\imapclient\tls.py", line 144, in wrap_socket
    ssl_context = create_default_context()
  File "E:\Python27\lib\site-packages\imapclient\tls.py", line 127, in create_default_context
    context.load_verify_locations(cadata=certs)
  File "E:\Python27\lib\site-packages\backports\ssl\core.py", line 654, in load_verify_locations
    self._ctx.load_verify_locations(cafile, capath)
  File "E:\Python27\lib\site-packages\OpenSSL\SSL.py", line 685, in load_verify_locations
    _raise_current_error()
  File "E:\Python27\lib\site-packages\OpenSSL\_util.py", line 54, in exception_from_error_queue
    raise exception_type(errors)
OpenSSL.SSL.Error: []

On System: win 10 64bit
Runtime: Python 2.7.13

At last, I found a solution from stackoverflow imapClient error (diff version python and windows) which require the old version of imapClient.

@magopian
Copy link
Owner

Hi, I'm sorry I'm not maintaining this project anymore, if you'd like to give it a go, I can add you as a maintainer?

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