#21875: Runtime Error with Django-Tastypie: "App registry isn't ready yet."
------------------------------------+--------------------------------------
     Reporter:                      |      Owner:  nobody
  benjamin.e.white1@…               |     Status:  new
         Type:  Bug                 |    Version:  1.7-alpha-1
    Component:  Uncategorized       |   Keywords:  Django-Tastypie, python3
     Severity:  Normal              |  Has patch:  0
 Triage Stage:  Unreviewed          |      UI/UX:  0
Easy pickings:  0                   |
------------------------------------+--------------------------------------
 Including django-tastypie as installed app prevents me from running
 server, migrating, etc. I'm on Python 3.3.3

 Traceback pasted below. Goes away when I remove django-tastypie as
 installed app.
 {{{
 Traceback (most recent call last):
   File "manage.py", line 10, in <module>
     execute_from_command_line(sys.argv)
   File "/Users/benjaminwhite/django-
 trunk/django/core/management/__init__.py", line 427, in
 execute_from_command_line
     utility.execute()
   File "/Users/benjaminwhite/django-
 trunk/django/core/management/__init__.py", line 391, in execute
     django.setup()
   File "/Users/benjaminwhite/django-trunk/django/__init__.py", line 21, in
 setup
     apps.populate(settings.INSTALLED_APPS)
   File "/Users/benjaminwhite/django-trunk/django/apps/registry.py", line
 105, in populate
     app_config.import_models(all_models)
   File "/Users/benjaminwhite/django-trunk/django/apps/base.py", line 180,
 in import_models
     self.models_module = import_module(models_module_name)
   File
 
"/Users/benjaminwhite/.virtualenvs/HUMAN_WRITES/lib/python3.3/importlib/__init__.py",
 line 90, in import_module
     return _bootstrap._gcd_import(name[level:], package, level)
   File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
   File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
   File "<frozen importlib._bootstrap>", line 1532, in
 _find_and_load_unlocked
   File "<frozen importlib._bootstrap>", line 584, in _check_name_wrapper
   File "<frozen importlib._bootstrap>", line 1022, in load_module
   File "<frozen importlib._bootstrap>", line 1003, in load_module
   File "<frozen importlib._bootstrap>", line 560, in
 module_for_loader_wrapper
   File "<frozen importlib._bootstrap>", line 868, in _load_module
   File "<frozen importlib._bootstrap>", line 313, in
 _call_with_frames_removed
   File "/Users/benjaminwhite/.virtualenvs/HUMAN_WRITES/lib/python3.3/site-
 packages/tastypie/models.py", line 32, in <module>
     from tastypie.compat import AUTH_USER_MODEL
   File "/Users/benjaminwhite/.virtualenvs/HUMAN_WRITES/lib/python3.3/site-
 packages/tastypie/compat.py", line 14, in <module>
     User = get_user_model()
   File "/Users/benjaminwhite/django-
 trunk/django/contrib/auth/__init__.py", line 133, in get_user_model
     user_model = apps.get_model(app_label, model_name)
   File "/Users/benjaminwhite/django-trunk/django/apps/registry.py", line
 182, in get_model
     self.check_ready()
   File "/Users/benjaminwhite/django-trunk/django/apps/registry.py", line
 118, in check_ready
     raise RuntimeError("App registry isn't ready yet.")
 RuntimeError: App registry isn't ready yet.
 (HUMAN_WRITES)Benjamins-MacBook-Air:narrativize benjaminwhite$ python
 manage.py runserver
 Traceback (most recent call last):
   File "manage.py", line 10, in <module>
     execute_from_command_line(sys.argv)
   File "/Users/benjaminwhite/django-
 trunk/django/core/management/__init__.py", line 427, in
 execute_from_command_line
     utility.execute()
   File "/Users/benjaminwhite/django-
 trunk/django/core/management/__init__.py", line 391, in execute
     django.setup()
   File "/Users/benjaminwhite/django-trunk/django/__init__.py", line 21, in
 setup
     apps.populate(settings.INSTALLED_APPS)
   File "/Users/benjaminwhite/django-trunk/django/apps/registry.py", line
 105, in populate
     app_config.import_models(all_models)
   File "/Users/benjaminwhite/django-trunk/django/apps/base.py", line 180,
 in import_models
     self.models_module = import_module(models_module_name)
   File
 
"/Users/benjaminwhite/.virtualenvs/HUMAN_WRITES/lib/python3.3/importlib/__init__.py",
 line 90, in import_module
     return _bootstrap._gcd_import(name[level:], package, level)
   File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
   File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
   File "<frozen importlib._bootstrap>", line 1532, in
 _find_and_load_unlocked
   File "<frozen importlib._bootstrap>", line 584, in _check_name_wrapper
   File "<frozen importlib._bootstrap>", line 1022, in load_module
   File "<frozen importlib._bootstrap>", line 1003, in load_module
   File "<frozen importlib._bootstrap>", line 560, in
 module_for_loader_wrapper
   File "<frozen importlib._bootstrap>", line 868, in _load_module
   File "<frozen importlib._bootstrap>", line 313, in
 _call_with_frames_removed
   File "/Users/benjaminwhite/.virtualenvs/HUMAN_WRITES/lib/python3.3/site-
 packages/tastypie/models.py", line 32, in <module>
     from tastypie.compat import AUTH_USER_MODEL
   File "/Users/benjaminwhite/.virtualenvs/HUMAN_WRITES/lib/python3.3/site-
 packages/tastypie/compat.py", line 14, in <module>
     User = get_user_model()
   File "/Users/benjaminwhite/django-
 trunk/django/contrib/auth/__init__.py", line 133, in get_user_model
     user_model = apps.get_model(app_label, model_name)
   File "/Users/benjaminwhite/django-trunk/django/apps/registry.py", line
 182, in get_model
     self.check_ready()
   File "/Users/benjaminwhite/django-trunk/django/apps/registry.py", line
 118, in check_ready
     raise RuntimeError("App registry isn't ready yet.")
 RuntimeError: App registry isn't ready yet.

 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21875>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/070.fff2c07d10ddf7de1c172766cad46d5c%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to