[issue17354] TypeError when running setup.py upload --show-response
Berker Peksag added the comment: Oh, I was wrong. This is not a duplicate of issue 12853 (but they are related). Also, the patch in issue 19226 is looks better to me. -- nosy: +jason.coombs, labrat resolution: duplicate - stage: committed/rejected - patch review status: closed - open superseder: global name 'r' is not defined in upload.py - versions: +Python 3.4 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17354 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17354] TypeError when running setup.py upload --show-response
Jason R. Coombs added the comment: Berker reports in issue12853, msg202927 that the issue is fixed for Python 3.3 and 3.4 by the patch for issue6286 applied as part of issue19544. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17354 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17354] TypeError when running setup.py upload --show-response
Berker Peksag added the comment: Duplicate of issue 12853. -- nosy: +berker.peksag resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - global name 'r' is not defined in upload.py type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17354 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17354] TypeError when running setup.py upload --show-response
Éric Araujo added the comment: Thanks for the report and patch. I think this bug is already reported, I’ll search for the duplicate when I get time. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17354 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17354] TypeError when running setup.py upload --show-response
Changes by Éric Araujo mer...@netwok.org: -- assignee: - eric.araujo components: +Distutils -Library (Lib) nosy: +tarek versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17354 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17354] TypeError when running setup.py upload --show-response
New submission from Dmitry Shachnev: 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. -- components: Library (Lib) files: distutils-decode-server-response.patch keywords: patch messages: 183517 nosy: mitya57 priority: normal severity: normal status: open title: TypeError when running setup.py upload --show-response versions: Python 3.3 Added file: http://bugs.python.org/file29312/distutils-decode-server-response.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17354 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com