[New-bugs-announce] [issue14887] pysetup: unfriendly error message for unknown commands

Ronald Oussoren report at bugs.python.org
Wed May 23 11:38:50 CEST 2012

New submission from Ronald Oussoren <ronaldoussoren at mac.com>:

The pysetup3 command gives a fairly unfriendly error message with python traceback when you specify an unknown command:

pysetup3 instal
Unrecognized action "instal"
Traceback (most recent call last):
  File "/Library/Frameworks/PythonDev.framework/Versions/3.3/lib/python3.3/packaging/run.py", line 647, in main
    dispatcher = Dispatcher(args)
  File "/Library/Frameworks/PythonDev.framework/Versions/3.3/lib/python3.3/packaging/run.py", line 401, in __init__
    raise PackagingArgError(msg)
packaging.errors.PackagingArgError: Unrecognized action "instal"

The traceback is not useful for the user of the script and should therefore not be shown.

BTW. It would also be nice if 'pysetup3 help' would give the same output as 'pysetup3 --help', similar to how 'hg help' behaves.

assignee: eric.araujo
components: Distutils2
messages: 161396
nosy: alexis, eric.araujo, ronaldoussoren, tarek
priority: low
severity: normal
stage: needs patch
status: open
title: pysetup: unfriendly error message for unknown commands
type: behavior
versions: Python 3.3

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list