Skip to content

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

Open
@ildar

Description

$  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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions