[issue6291] TypeError: b2a_base64() argument 1 must be bytes or buffer, not str during SMTP.login

Milivoj Milani report at bugs.python.org
Tue Jun 16 10:19:54 CEST 2009


New submission from Milivoj Milani <milivojm at gzr.hr>:

When trying to send an e-mail using a tutorial like example, I get the 
following message:

Traceback (most recent call last):
  File "test.py", line 3, in <module>
    server.login("domena\someuser","somepassword")
  File "C:\Python\lib\smtplib.py", line 583, in login
    "%s %s" % (AUTH_LOGIN, encode_base64(user)))
  File "C:\Python\lib\email\base64mime.py", 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

----------
components: Library (Lib)
files: test.py
messages: 89428
nosy: milivojm
severity: normal
status: open
title: TypeError: b2a_base64() argument 1 must be bytes or buffer, not str during SMTP.login
type: behavior
versions: Python 3.0
Added file: http://bugs.python.org/file14307/test.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6291>
_______________________________________


More information about the Python-bugs-list mailing list