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)

Most upvoted comments

@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:

@davedash https://github.com/davedash I think I may have identified the problem. If you navigate here you will see there is no 0.1.4 or 0.1.5 (but there is a version called 0.1.4.macosx-10.13-x86_64).

https://pypi.org/simple/django-fixture-magic/

I read in one article that you may need to do python setup.py bdist_wheel upload to get it to show up there.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/davedash/django-fixture-magic/issues/59#issuecomment-658954164, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAOQ2O4SKAQAI76YBHMKEDR3X5X3ANCNFSM4D4HYHGQ .

Just ran into this error, confirmed it’s fixed by using master:

pip install -e git+https://github.com/davedash/django-fixture-magic.git@master#egg=django_fixture_magic

 pip freeze | grep fixture
-e git+https://github.com/davedash/django-fixture-magic.git@466fa35c075009e4a1974f6e588471dd9e720e53#egg=django_fixture_magic

I misread that it was fixed by #61. Reopening but it won’t be fixed unless someone’s got a PR for this.