mjs / imapclient

An easy-to-use, Pythonic and complete IMAP client library

Home Page:https://imapclient.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IMAP4_TLS.open() error

solarmcpanel opened this issue · comments

Any suggestions as to what is going on below? Help appreciated!

I'm entering the following in to IDLE shell.

imapObj = imapclient.IMAPClient('imap.virginmedia.com', ssl=True)

I get the following error:-
Traceback (most recent call last):
File "<pyshell#43>", line 1, in
imapObj = imapclient.IMAPClient('imap.virginmedia.com', port=993, ssl=True, use_uid=True)
File "C:\Users\dougl\AppData\Roaming\Python\Python310\site-packages\imapclient\imapclient.py", line 254, in init
self._imap = self._create_IMAP4()
File "C:\Users\dougl\AppData\Roaming\Python\Python310\site-packages\imapclient\imapclient.py", line 288, in _create_IMAP4
return tls.IMAP4_TLS(self.host, self.port, self.ssl_context,
File "C:\Users\dougl\AppData\Roaming\Python\Python310\site-packages\imapclient\tls.py", line 44, in init
imaplib.IMAP4.init(self, host, port)
File "C:\Users\dougl\AppData\Local\Programs\Python\Python310\lib\imaplib.py", line 202, in init
self.open(host, port, timeout)
TypeError: IMAP4_TLS.open() takes 3 positional arguments but 4 were given

Installed from pip or github ?

I'm not able to replicate this. I can see in the traceback that you're using Python 3.10. Which version of IMAPClient are you using?

No problems. Thanks for circling back.