Issue 11884: Argparse calls ngettext but doesn't import it (original ) (raw )Created on 2011-04-20 07:36 by johnohagan , last changed 2022-04-11 14:57 by admin . This issue is now closed .
Messages (5)
msg134126 - (view)
Author: John O'Hagan (johnohagan)
Date: 2011-04-20 07:36
Argparse in python3.2 includes two calls to ngettext to handle error messages, but ngettext is not imported. This causes NameError to be raised instead of ArgumentError. Changing line 93 from: from gettext import gettext to: from gettext import gettext, ngettext seems to fix the problem.
msg134274 - (view)
Author: Éric Araujo (eric.araujo) *
Date: 2011-04-22 16:57
I added the import and calls in 1827a8ac9b18 , so this report is strange. What is your exact version and where did you get it?
msg134294 - (view)
Author: John O'Hagan (johnohagan)
Date: 2011-04-23 04:48
It's argparse version 1.1 (1.1-1) from current Debian testing, Python 3.2 (r32:88445, Feb 20 2011, 18:43:30)
msg134303 - (view)
Author: Éric Araujo (eric.araujo) *
Date: 2011-04-23 14:49
Confirmed. It’s a Debian-specific problem, please use “reportbug python3.2” to report it to them.
msg134527 - (view)
Author: John O'Hagan (johnohagan)
Date: 2011-04-27 04:31
Reported to Debian, bug #624277
History
Date
User
Action
Args
2022-04-11 14:57:16
admin
set
github: 56093
2011-04-27 04:31:28
johnohagan
set
messages: +
2011-04-23 14:49:13
eric.araujo
set
status: open -> closednosy: + doko messages: + resolution: not a bugstage: resolved
2011-04-23 04:48:26
johnohagan
set
messages: +
2011-04-22 16:57:09
eric.araujo
set
assignee: eric.araujo messages: + nosy: + eric.araujo
2011-04-20 19:59:20
ned.deily
set
nosy: + bethard
2011-04-20 07:36:50
johnohagan
create