Giter Club home page Giter Club logo

Comments (6)

faustow avatar faustow commented on June 29, 2024

Having the same issue myself, here's the traceback in text format:

(venv)m1@m1:~/app-django$ python manage.py dump_object -k app.FirstModel * > fausto.json
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/m1/app-django/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
    utility.execute()
  File "/home/m1/app-django/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 377, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/m1/app-django/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 288, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/home/m1/app-django/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 338, in execute
    output = self.handle(*args, **options)
  File "/home/m1/app-django/venv/local/lib/python2.7/site-packages/fixture_magic/management/commands/dump_object.py", line 73, in handle
    for obj in objs:
UnboundLocalError: local variable 'objs' referenced before assignment

from django-fixture-magic.

dchoruzy avatar dchoruzy commented on June 29, 2024

same error occurred to me

from django-fixture-magic.

jerzygangi avatar jerzygangi commented on June 29, 2024

I'm having the same issue

from django-fixture-magic.

davedash avatar davedash commented on June 29, 2024

@jerzygangi can you try out the version in https://github.com/davedash/django-fixture-magic/tree/possible-fix and let me know if that works for you?

It's an edge case, but I don't have a good way of testing it.

from django-fixture-magic.

fleur avatar fleur commented on June 29, 2024

i'm having the same problem as exp0nge, which looks like it's happening in a different place in the code than faustow's. the possible-fix branch doesn't fix my issue, fwiw.

from django-fixture-magic.

jerzygangi avatar jerzygangi commented on June 29, 2024

@davedash Sorry for the delay in replying. I wish I could help... I stopped using fixture magic, and started writing fixtures by hand; also, quite some time has passed so I'm not sure I could reproduce the bug again. Good luck in figuring it out.

from django-fixture-magic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.