Python 2.6: keywords must be strings
wolever opened this issue · 2 comments
wolever commented
After building a Python 2 distribution and installing it, I'm getting this error:
$ blogofile
Traceback (most recent call last):
File "/usr/local/bin/blogofile", line 8, in <module>
load_entry_point('Blogofile==0.8-DEV', 'console_scripts', 'blogofile')()
File "/Library/Python/2.6/site-packages/blogofile/main.py", line 156, in main
parser = setup_command_parser()
File "/Library/Python/2.6/site-packages/blogofile/main.py", line 42, in setup_command_parser
parser_template = argparse.ArgumentParser(add_help=False)
File "/Library/Python/2.6/site-packages/blogofile/argparse.py", line 1599, in __init__
self._positionals = add_group(_(u'positional arguments'))
File "/Library/Python/2.6/site-packages/blogofile/argparse.py", line 1310, in add_argument_group
group = _ArgumentGroup(self, *args, **kwargs)
File "/Library/Python/2.6/site-packages/blogofile/argparse.py", line 1495, in __init__
super_init(description=description, **kwargs)
TypeError: __init__() keywords must be strings
wolever commented
It's possible to “fix” this by running s/u(['"])/\1/g
on …/blogofile/argparse.py… But that's not an entirely optimal solution.
douglatornell commented
The blogofile customized version of argparse has been dropped (and with it command line completion - sorry!). Blogofile plugins branch now runs on Python 2.6, 2.7 and 3.2 from a single codebase. So, this issue should no longer exist.