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

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

Open
ildar opened this issue Mar 11, 2021 · 0 comments
Open

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

ildar opened this issue Mar 11, 2021 · 0 comments

Comments

@ildar
Copy link

ildar commented Mar 11, 2021

$  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
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

1 participant