new development setup fails so import publicbody.json
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 411
- Forks
- 100
- Avg merge
- 6d 12h
- Merged PRs (30d)
- 8
Description
Did a checkout of Commit 9af15f87c2 and setup the environment according to getting started guide (http://froide.readthedocs.org/en/latest/gettingstarted/). When trying to import sample data from publicbodies.json import fails with the following output:
$python manage.py loaddata publicbody.json
Traceback (most recent call last):
File "manage.py", line 11, in
execute_from_command_line(sys.argv)
File "/usr/home/gf/projects/okf_froide/.froide_env/lib/python2.7/site-packages/django/core/management/init.py", line 399, in execute_from_command_line
utility.execute()
File "/usr/home/gf/projects/okf_froide/.froide_env/lib/python2.7/site-packages/django/core/management/init.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/home/gf/projects/okf_froide/.froide_env/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv
self.execute(_args, *_options.dict)
File "/usr/home/gf/projects/okf_froide/.froide_env/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
output = self.handle(_args, *_options)
File "/usr/home/gf/projects/okf_froide/.froide_env/lib/python2.7/site-packages/django/core/management/commands/loaddata.py", line 55, in handle
self.loaddata(fixture_labels)
File "/usr/home/gf/projects/okf_froide/.froide_env/lib/python2.7/site-packages/django/core/management/commands/loaddata.py", line 84, in loaddata
self.load_label(fixture_label)
File "/usr/home/gf/projects/okf_froide/.froide_env/lib/python2.7/site-packages/django/core/management/commands/loaddata.py", line 134, in load_label
for obj in objects:
File "/usr/home/gf/projects/okf_froide/.froide_env/lib/python2.7/site-packages/django/core/serializers/json.py", line 76, in Deserializer
six.reraise(DeserializationError, DeserializationError(e), sys.exc_info()[2])
File "/usr/home/gf/projects/okf_froide/.froide_env/lib/python2.7/site-packages/django/core/serializers/json.py", line 70, in Deserializer
for obj in PythonDeserializer(objects, **options):
File "/usr/home/gf/projects/okf_froide/.froide_env/lib/python2.7/site-packages/django/core/serializers/python.py", line 90, in Deserializer
Model = _get_model(d["model"])
File "/usr/home/gf/projects/okf_froide/.froide_env/lib/python2.7/site-packages/django/core/serializers/python.py", line 153, in _get_model
raise base.DeserializationError("Invalid model identifier: '%s'" % model_identifier)
django.core.serializers.base.DeserializationError: Problem installing fixture '/usr/home/gf/projects/okf_froide/froide/publicbody/fixtures/publicbody.json': Invalid model identifier: 'publicbody.publicbodytopic'
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with froide/publicbody/fixtures/publicbody.json and the getting started guide, then run python manage.py loaddata publicbody.json to reproduce the failure. Inspect the publicbody.publicbodytopic model identifier reported by Django and determine the fixture change needed so the sample data imports successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, python
- Domain
- database
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100