AdolfVonKleist / Phonetisaurus

Phonetisaurus G2P
BSD 3-Clause "New" or "Revised" License
449 stars 122 forks source link

script/phoneticize.py arg parsing error #26

Closed jcbloch closed 7 years ago

jcbloch commented 7 years ago

script fails with

Traceback (most recent call last): File ".phoneticize.py", line 60, in <module> action="store_true") File "/usr/lib/python2.7/argparse.py", line 1294, in add_argument action = action_class(**kwargs) TypeError: __init__() got an unexpected keyword argument 'type'

Python 2.7.9

removing the type=bool fixes it.

What python env's are supported?

AdolfVonKleist commented 7 years ago

Thanks, this looks to be related to sloppy misuse of argparse. In theory 2.x should work, although anything less than 2.7 requires a pip install argparse or equivalent. #8a34e63 applies your suggestion.