Comments (6)
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.
same error occurred to me
from django-fixture-magic.
I'm having the same issue
from django-fixture-magic.
@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.
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.
@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)
- Why you don't support Python3? HOT 5
- ImportError: cannot import name loading HOT 3
- Custom dump nested deps HOT 3
- unexpected keyword argument 'use_natural_foreign_keys' HOT 3
- Issue while dumping a single object HOT 3
- dump_object fails to parse command arguments correctly HOT 7
- merge_fixtures is having some problem parsing parameters with Python 3 HOT 17
- dump_object args parsing problem
- merge_fixtures is having some problem parsing parameters HOT 1
- Pip installs wrong version from PyPi HOT 10
- dump_object fails on '*' HOT 2
- query using the call_command HOT 1
- merge_fixtures should write to stdout HOT 2
- 1146, "Table 'db.table_name' doesn't exist" - error HOT 1
- Could not dump objects until I modified dump_object.py as per comment HOT 1
- dump_object does not follow object relations HOT 5
- dump_object with query parameter throwing JSONDecodeError
- Is this project still being developed? HOT 4
- implement CI workflow to publish to pypi.
- Unable to dump BinaryField
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-fixture-magic.