[Mailman-Users] View a user's subscription options
mark at msapiro.net
Thu Dec 3 12:02:41 EST 2015
On 12/03/2015 06:21 AM, Larry Kuenning wrote:
> I tried this and got:
> [root at xxxxxxx mailman]# bin/user_options -h
> Traceback (most recent call last):
> File "bin/user_options", line 98, in ?
> File "bin/user_options", line 52, in main
> ns, args = parseargs()
> File "bin/user_options", line 38, in parseargs
> TypeError: __init__() got an unexpected keyword argument 'epilog'
> This is under Python 2.4.3. (Should the file be called user_options or
> user_options.py? I tried it both ways and got the same result.)
It doesn't matter what you name the file or whether it has a .py
extension. This is only significant for withlist scripts.
The problem is your Python version. optparse.OptionParser didn't have an
'epilog' attribute in Python 2.4. That requires Python 2.5.
If you just remove the lines 36 and 37:
epilog=Utils.wrap("""This script must be put in Mailman's bin/
from the script, it should work with Python 2.4, although the -h/--help
output won't contain that line.
Sorry about that. This dependency doesn't appear to be documented at
I'll add some comment to the script.
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Users