jazzband / imaplib2

Fork of Piers Lauder's imaplib2 library for Python.
https://imaplib2.readthedocs.io/
MIT License
34 stars 29 forks source link

cannot use a bytes pattern on a string-like object #17

Open ildar opened 3 years ago

ildar commented 3 years ago
$  python3
Python 3.8.2 (default, Mar 26 2020, 10:03:49) 
[GCC 9.2.1 20200123 (ALT Sisyphus 9.2.1-alt3)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import imaplib2   
>>> imaplib2.IMAP4_SSL(host="imap.gmail.com", ca_certs="/etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/site-packages/imaplib2/imaplib2.py", line 2192, in __init__
    IMAP4.__init__(self, host, port, debug, debug_file, identifier, timeout, debug_buf_lvl)
  File "/usr/lib/python3/site-packages/imaplib2/imaplib2.py", line 400, in __init__
    self.welcome = self._request_push(name='welcome', tag='continuation').get_response('IMAP4 protocol error: %s')[1]
  File "/usr/lib/python3/site-packages/imaplib2/imaplib2.py", line 201, in get_response
    raise typ(exc_fmt % str(val))
imaplib2.imaplib2.error: IMAP4 protocol error: program error: <class 'TypeError'> - cannot use a bytes pattern on a string-like object