[New-bugs-announce] [issue11970] distutils command 'upload' crashes when --show-response is selected

Chris Rose report at bugs.python.org
Sun May 1 15:42:21 CEST 2011

New submission from Chris Rose <offby1 at offby1.net>:

When running distutils like so:

.tox/py27/bin/python setup.py -v bdist_egg upload --show-response 

Eventually, after everything else spools by, this pops up:

Using PyPI login from /Users/offline/.pypirc
Submitting dist/PyHamcrest-1.5-py2.7.egg to http://pypi.python.org/pypi
Upload failed (401): You must be identified to edit package information
Traceback (most recent call last):
  File "setup.py", line 69, in <module>
  File "/usr/local/Cellar/python/2.7.1/lib/python2.7/distutils/core.py", line 152, in setup
  File "/usr/local/Cellar/python/2.7.1/lib/python2.7/distutils/dist.py", line 953, in run_commands
  File "/usr/local/Cellar/python/2.7.1/lib/python2.7/distutils/dist.py", line 972, in run_command
  File "/usr/local/Cellar/python/2.7.1/lib/python2.7/distutils/command/upload.py", line 60, in run
    self.upload_file(command, pyversion, filename)
  File "/usr/local/Cellar/python/2.7.1/lib/python2.7/distutils/command/upload.py", line 193, in upload_file
    msg = '\n'.join(('-' * 75, r.read(), '-' * 75))
NameError: global name 'r' is not defined

assignee: tarek
components: Distutils
files: upload-failed.log
messages: 134908
nosy: eric.araujo, offby1, tarek
priority: normal
severity: normal
status: open
title: distutils command 'upload' crashes when --show-response is selected
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file21845/upload-failed.log

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list