django-fixture-magic: merge_fixtures is having some problem parsing parameters with Python 3
Using the following Python and Django
Python 3.4.6 Django 1.10.7
When I run the merge_fixtures command
python manage.py merge_fixtures foo.json bar.json baz.json > all_fixtures.json
It shows the following error message:
usage: manage.py merge_fixtures [-h] [--version] [-v {0,1,2,3}]
[--settings SETTINGS]
[--pythonpath PYTHONPATH] [--traceback]
[--no-color]
manage.py merge_fixtures: error: unrecognized arguments: foo.json bar.json baz.json
I looked into it a little bit and it seems to be unhappy in parsing the command line parameters. I think it is unhappy here:
parser = self.create_parser(argv[0], argv[1])
options = parser.parse_args(argv[2:])
But I am a bit unfamiliar with what is expected here and didn’t have time to fully investigate the issue. Do you have a hint where I should be looking?
About this issue
- Original URL
- State: open
- Created 7 years ago
- Reactions: 2
- Comments: 17 (5 by maintainers)
@davedash it’s all about releasing what you have in master to pypi 😃
I uploaded a wheel version and tried locally to verify that it now works. DOes this work for you?
Dave Dash
On Wed, Jul 15, 2020 at 12:14 PM Matthew Ghantous notifications@github.com wrote:
Just ran into this error, confirmed it’s fixed by using master:
I misread that it was fixed by #61. Reopening but it won’t be fixed unless someone’s got a PR for this.