[New-bugs-announce] [issue4338] TypeError (bytes/str) in distutils command "upload"
Hagen Fürstenau
report at bugs.python.org
Mon Nov 17 18:40:10 CET 2008
New submission from Hagen Fürstenau <hfuerstenau at gmx.net>:
"python3.0 setup.py upload" (on an otherwise sane setup script) results
in the following:
Traceback (most recent call last):
File "setup.py", line 5, in <module>
import py3setup
File "/home/MP/hagenf/src/pyskein/py3setup.py", line 22, in <module>
ext_modules=[ext])
File "/home/MP/hagenf/local/lib/python3.0/distutils/core.py", line
149, in setup
dist.run_commands()
File "/home/MP/hagenf/local/lib/python3.0/distutils/dist.py", line
942, in run_commands
self.run_command(cmd)
File "/home/MP/hagenf/local/lib/python3.0/distutils/dist.py", line
962, in run_command
cmd_obj.run()
File
"/home/MP/hagenf/local/lib/python3.0/distutils/command/upload.py", line
55, in run
self.upload_file(command, pyversion, filename)
File
"/home/MP/hagenf/local/lib/python3.0/distutils/command/upload.py", line
116, in upload_file
auth = "Basic " + base64.encodestring(self.username + ":" +
self.password).strip()
File "/home/MP/hagenf/local/lib/python3.0/base64.py", line 338, in
encodestring
raise TypeError("expected bytes, not %s" % s.__class__.__name__)
TypeError: expected bytes, not str
----------
components: Distutils
messages: 75975
nosy: hagen
severity: normal
status: open
title: TypeError (bytes/str) in distutils command "upload"
type: behavior
versions: Python 3.0
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4338>
_______________________________________
More information about the New-bugs-announce
mailing list