Message183517
When running `python3 setup.py sdist upload --show-response`, one may get this exception:
Traceback (most recent call last):
File "setup.py", line 47, in <module>
requires=['dbus']
File "/usr/lib/python3.2/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.2/distutils/dist.py", line 917, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.2/distutils/dist.py", line 936, in run_command
cmd_obj.run()
File "/usr/lib/python3.2/distutils/command/upload.py", line 66, in run
self.upload_file(command, pyversion, filename)
File "/usr/lib/python3.2/distutils/command/upload.py", line 201, in upload_file
msg = '\n'.join(('-' * 75, r.read(), '-' * 75))
TypeError: sequence item 1: expected str instance, bytes found
This happens because r is binary stream, so r.read() returns bytes. A trivial patch that fixes the problem is attached. |
|
Date |
User |
Action |
Args |
2013-03-05 09:56:30 | mitya57 | set | recipients:
+ mitya57 |
2013-03-05 09:56:30 | mitya57 | set | messageid: <1362477390.5.0.0948217479976.issue17354@psf.upfronthosting.co.za> |
2013-03-05 09:56:30 | mitya57 | link | issue17354 messages |
2013-03-05 09:56:29 | mitya57 | create | |
|