This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: TypeError: b2a_base64() argument 1 must be bytes or buffer, not str during SMTP.login
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.0
Status: closed Resolution: duplicate
Dependencies: Superseder: smtplib is broken in Python3
View: 5259
Assigned To: Nosy List: milivojm, r.david.murray
Priority: normal Keywords:

Created on 2009-06-16 08:19 by milivojm, last changed 2022-04-11 14:56 by admin. This issue is now closed.

File name Uploaded Description Edit milivojm, 2009-06-16 08:19 Python example script invoking error
Messages (2)
msg89428 - (view) Author: Milivoj Milani (milivojm) Date: 2009-06-16 08:19
When trying to send an e-mail using a tutorial like example, I get the 
following message:

Traceback (most recent call last):
  File "", line 3, in <module>
  File "C:\Python\lib\", line 583, in login
    "%s %s" % (AUTH_LOGIN, encode_base64(user)))
  File "C:\Python\lib\email\", line 96, in body_encode
    enc = b2a_base64(s[i:i + max_unencoded]).decode("ascii")
TypeError: b2a_base64() argument 1 must be bytes or buffer, not str
msg89431 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2009-06-16 12:59
This is a duplicate of issue 5259, and has already been fixed.  Thanks
for the report.
Date User Action Args
2022-04-11 14:56:50adminsetgithub: 50540
2009-06-16 12:59:24r.david.murraysetstatus: open -> closed
priority: normal
superseder: smtplib is broken in Python3

nosy: + r.david.murray
messages: + msg89431
resolution: duplicate
stage: resolved
2009-06-16 08:19:53milivojmcreate