This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: pysetup: unfriendly error message for unknown commands
Type: behavior Stage: resolved
Components: Distutils2 Versions: Python 3.3
Status: closed Resolution: duplicate
Dependencies: Superseder: Don't print traceback for unrecognized actions, commands and options in packaging
View: 13399
Assigned To: eric.araujo Nosy List: alexis, eric.araujo, ronaldoussoren, tarek
Priority: low Keywords:

Created on 2012-05-23 09:38 by ronaldoussoren, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg161396 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2012-05-23 09:38
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/", line 647, in main
    dispatcher = Dispatcher(args)
  File "/Library/Frameworks/PythonDev.framework/Versions/3.3/lib/python3.3/packaging/", 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.
msg161413 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012-05-23 14:39
Already reported, fixed in distutils2 and to be sideported to packaging soon.
Date User Action Args
2022-04-11 14:57:30adminsetgithub: 59092
2012-05-23 14:39:21eric.araujosetstatus: open -> closed
superseder: Don't print traceback for unrecognized actions, commands and options in packaging
messages: + msg161413

resolution: duplicate
stage: needs patch -> resolved
2012-05-23 09:38:50ronaldoussorencreate