#30352: Error al ejecutar python manage.py sin sealizar cambios
-------------------------------------+-------------------------------------
     Reporter:  irv-ro-j             |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Core (System         |                  Version:  2.2
  checks)                            |
     Severity:  Normal               |               Resolution:
     Keywords:  Reload Django        |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Scott Talbert):

 * status:  closed => new
 * resolution:  worksforme =>


Comment:

 I'm seeing the same issue apparently (although I don't understand Spanish
 well):

 {{{
 Watching for file changes with StatReloader
 Performing system checks...

 Exception in thread Thread-1:
 Traceback (most recent call last):
   File "<home_dir>/rest_api/env/lib/python3.6/site-
 packages/django/template/utils.py", line 66, in __getitem__
     return self._engines[alias]
 KeyError: 'django'

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
     self.run()
   File "/usr/lib/python3.6/threading.py", line 864, in run
     self._target(*self._args, **self._kwargs)
   File "<home_dir>/rest_api/env/lib/python3.6/site-
 packages/django/utils/autoreload.py", line 54, in wrapper
     fn(*args, **kwargs)
   File "<home_dir>/rest_api/env/lib/python3.6/site-
 packages/django/core/management/commands/runserver.py", line 117, in
 inner_run
     self.check(display_num_errors=True)
   File "<home_dir>/rest_api/env/lib/python3.6/site-
 packages/django/core/management/base.py", line 390, in check
     include_deployment_checks=include_deployment_checks,
   File "<home_dir>/rest_api/env/lib/python3.6/site-
 packages/django/core/management/base.py", line 377, in _run_checks
     return checks.run_checks(**kwargs)
   File "<home_dir>/rest_api/env/lib/python3.6/site-
 packages/django/core/checks/registry.py", line 72, in run_checks
     new_errors = check(app_configs=app_configs)
   File "<home_dir>/rest_api/env/lib/python3.6/site-
 packages/django/contrib/admin/checks.py", line 80, in check_dependencies
     for engine in engines.all():
   File "<home_dir>/rest_api/env/lib/python3.6/site-
 packages/django/template/utils.py", line 90, in all
     return [self[alias] for alias in self]
   File "<home_dir>/rest_api/env/lib/python3.6/site-
 packages/django/template/utils.py", line 90, in <listcomp>
     return [self[alias] for alias in self]
   File "<home_dir>/rest_api/env/lib/python3.6/site-
 packages/django/template/utils.py", line 81, in __getitem__
     engine = engine_cls(params)
   File "<home_dir>/rest_api/env/lib/python3.6/site-
 packages/django/template/backends/django.py", line 25, in __init__
     options['libraries'] = self.get_templatetag_libraries(libraries)
   File "<home_dir>/rest_api/env/lib/python3.6/site-
 packages/django/template/backends/django.py", line 43, in
 get_templatetag_libraries
     libraries = get_installed_libraries()
   File "<home_dir>/rest_api/env/lib/python3.6/site-
 packages/django/template/backends/django.py", line 108, in
 get_installed_libraries
     for name in get_package_libraries(pkg):
   File "<home_dir>/rest_api/env/lib/python3.6/site-
 packages/django/template/backends/django.py", line 121, in
 get_package_libraries
     module = import_module(entry[1])
   File "/usr/lib/python3.6/importlib/__init__.py", line 126, in
 import_module
     return _bootstrap._gcd_import(name[level:], package, level)
   File "<frozen importlib._bootstrap>", line 994, in _gcd_import
   File "<frozen importlib._bootstrap>", line 971, in _find_and_load
   File "<frozen importlib._bootstrap>", line 955, in
 _find_and_load_unlocked
   File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
   File "<frozen importlib._bootstrap_external>", line 678, in exec_module
   File "<frozen importlib._bootstrap>", line 219, in
 _call_with_frames_removed
   File "<home_dir>/rest_api/env/lib/python3.6/site-
 packages/rest_framework/templatetags/rest_framework.py", line 15, in
 <module>
     from rest_framework.renderers import HTMLFormRenderer
   File "<home_dir>/rest_api/env/lib/python3.6/site-
 packages/rest_framework/renderers.py", line 20, in <module>
     from django.test.client import encode_multipart
   File "<home_dir>/rest_api/env/lib/python3.6/site-
 packages/django/test/client.py", line 23, in <module>
     from django.test import signals
   File "<frozen importlib._bootstrap>", line 968, in _find_and_load
   File "<frozen importlib._bootstrap>", line 149, in __enter__
   File "<frozen importlib._bootstrap>", line 94, in acquire
 _frozen_importlib._DeadlockError: deadlock detected by
 _ModuleLock('django.test.signals') at 140466248423072
 }}}

 My packages list is a bit shorter:
 {{{
 certifi==2019.3.9
 chardet==3.0.4
 colorama==0.4.1
 Django==2.2
 djangorestframework==3.9.2
 future==0.17.1
 h2o==3.22.1.5
 idna==2.8
 numpy==1.16.2
 pandas==0.24.2
 pkg-resources==0.0.0
 python-dateutil==2.8.0
 pytz==2018.9
 requests==2.21.0
 six==1.12.0
 sqlparse==0.3.0
 tabulate==0.8.3
 urllib3==1.24.1
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30352#comment:2>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.5af3b61b05bdd0bdfd60cb88502e749c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to