classification
Title: "python setup.py sdist upload --show-response" fails
Type: behavior Stage: resolved
Components: Versions: Python 2.7
process
Status: closed Resolution: duplicate
Dependencies: Superseder: "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment"
View: 10367
Assigned To: Nosy List: jcea
Priority: high Keywords: easy

Created on 2010-11-08 21:43 by jcea, last changed 2010-11-08 22:14 by eric.araujo. This issue is now closed.

Messages (1)
msg120806 - (view) Author: Jesús Cea Avión (jcea) * (Python committer) Date: 2010-11-08 21:43
Uploading a new module/update to PYPI, when requesting "--show_response" in the command line, will fail:

"""
Traceback (most recent call last):
  File "setup.py", line 5, in <module>
    import setup2
  File "/home/pybsddb/setup2.py", line 415, in <module>
    'Programming Language :: Python :: 3.2',
  File "/usr/local/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python2.7/distutils/command/upload.py", line 60, in run
    self.upload_file(command, pyversion, filename)
  File "/usr/local/lib/python2.7/distutils/command/upload.py", line 194, in upload_file
    self.announce('-'*75, result, '-'*75)
TypeError: announce() takes at most 3 arguments (4 given)
"""

This works correctly under Python 2.6. I haven't checked Python 3.x.
History
Date User Action Args
2010-11-08 22:14:42eric.araujosetstatus: open -> closed
type: crash -> behavior
superseder: "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment"
resolution: duplicate
stage: needs patch -> resolved
2010-11-08 21:43:57jceacreate