Updates : stalled with celery

alpine:~/dynamicweb# docker run -ti dynamicweb:latest
Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x7f9ede435cb0>
Traceback (most recent call last):
  File "/venv/lib/python3.7/site-packages/django/utils/autoreload.py", line 228, in wrapper
    fn(*args, **kwargs)
  File "/venv/lib/python3.7/site-packages/django/core/management/commands/runserver.py", line 116, in inner_run
    autoreload.raise_last_exception()
  File "/venv/lib/python3.7/site-packages/django/utils/autoreload.py", line 251, in raise_last_exception
    six.reraise(*_exception)
  File "/venv/lib/python3.7/site-packages/django/utils/six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "/venv/lib/python3.7/site-packages/django/utils/autoreload.py", line 228, in wrapper
    fn(*args, **kwargs)
  File "/venv/lib/python3.7/site-packages/django/__init__.py", line 27, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/venv/lib/python3.7/site-packages/django/apps/registry.py", line 108, in populate
    app_config.import_models()
  File "/venv/lib/python3.7/site-packages/django/apps/config.py", line 202, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/app/opennebula_api/models.py", line 11, in <module>
    from utils.tasks import save_ssh_key, save_ssh_key_error_handler
  File "/app/utils/tasks.py", line 5, in <module>
    from celery.result import AsyncResult
  File "/venv/lib/python3.7/site-packages/celery/result.py", line 14, in <module>
    from . import current_app, states
ImportError: cannot import name 'current_app' from 'celery' (/venv/lib/python3.7/site-packages/celery/__init__.py)
This commit is contained in:
PCoder 2023-05-29 11:53:51 +00:00
parent 56cae7b8ab
commit 934c1f98de
3 changed files with 12 additions and 11 deletions

View file

@ -156,7 +156,7 @@ INSTALLED_APPS = (
'webhook',
)
MIDDLEWARE_CLASSES = (
MIDDLEWARE = (
'django.contrib.sessions.middleware.SessionMiddleware',
'utils.middleware.MultipleProxyMiddleware',
'django.middleware.common.CommonMiddleware',

View file

@ -15,7 +15,7 @@ CACHES = {
}
}
MIDDLEWARE_CLASSES += ("debug_toolbar.middleware.DebugToolbarMiddleware",)
MIDDLEWARE += ("debug_toolbar.middleware.DebugToolbarMiddleware",)
INSTALLED_APPS += (
'django_extensions',

View file

@ -1,3 +1,4 @@
setuptools<58.0.0
Babel==2.3.4
Django==1.11.18
Django-Select2==4.3.2
@ -15,7 +16,7 @@ aldryn-people==2.2.0
aldryn-search==0.2.11
aldryn-translation-tools==0.3.0
backport-collections==0.1
cmsplugin-filer==1.0.1
#cmsplugin-filer==1.1.3
django-appconf==1.0.2
django-appdata==0.2.1
django-bootstrap3==7.0.1
@ -25,18 +26,18 @@ django-compressor==2.0
django-debug-toolbar==1.4
python-dotenv==0.10.3
django-extensions==1.6.7
django-filer==1.7.0
django-filer==1.5.0
django-filter==0.13.0
django-formtools>=2.1
django-formtools==2.1
django-guardian==1.4.4
django-haystack==2.4.1
django-meta==1.2
django-meta-mixin==0.3.0
django-model-utils==2.5
django-mptt==0.8.4
django-mptt==0.11
django-parler==1.9.2
django-phonenumber-field==1.1.0
django-polymorphic==0.8.1
django-polymorphic==2.0.2
django-reversion==1.10.2
django-sekizai==0.9.0
django-sortedm2m==3.1.1
@ -47,7 +48,7 @@ django-taggit==0.23.0
django-taggit-autosuggest==0.2.8
django-taggit-templatetags==0.2.5
django-templatetag-sugar==1.0
django-treebeard>=4.3
django-treebeard==4.3
djangocms-admin-style>=1.2
djangocms-apphook-setup==0.1.2
djangocms-blog==0.8.13
@ -61,14 +62,14 @@ djangocms-picture==1.0.0
djangocms-teaser==0.2.0
djangocms-text-ckeditor==3.7.0
djangocms-video==1.0.0
easy-thumbnails==2.3
easy-thumbnails==2.4.1
html5lib==0.999999999
ldap3==2.6.1
lxml
model-mommy==1.2.6
phonenumbers==8.13.11
psycopg2==2.8.4
pycryptodome==3.6.6
pycryptodome==3.8.0
pylibmc==1.6.3
python-dateutil==2.5.3
python-slugify==1.2.6
@ -88,7 +89,7 @@ flake8==3.3.0
python-memcached==1.58
celery==4.4.7
redis==2.10.5
#django-celery-results>=2.5.1
django-celery-results==1.0.2
kombu>=4.6.10
mccabe==0.6.1
pycodestyle==2.3.1