From 934c1f98dec49d7b5021922878ce82e848d18297 Mon Sep 17 00:00:00 2001 From: PCoder Date: Mon, 29 May 2023 11:53:51 +0000 Subject: [PATCH] Updates : stalled with celery alpine:~/dynamicweb# docker run -ti dynamicweb:latest Unhandled exception in thread started by .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 "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed File "/app/opennebula_api/models.py", line 11, in from utils.tasks import save_ssh_key, save_ssh_key_error_handler File "/app/utils/tasks.py", line 5, in from celery.result import AsyncResult File "/venv/lib/python3.7/site-packages/celery/result.py", line 14, in from . import current_app, states ImportError: cannot import name 'current_app' from 'celery' (/venv/lib/python3.7/site-packages/celery/__init__.py) --- dynamicweb/settings/base.py | 2 +- dynamicweb/settings/local.py | 2 +- requirements.txt | 19 ++++++++++--------- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/dynamicweb/settings/base.py b/dynamicweb/settings/base.py index 5f3938d4..821e1e0c 100644 --- a/dynamicweb/settings/base.py +++ b/dynamicweb/settings/base.py @@ -156,7 +156,7 @@ INSTALLED_APPS = ( 'webhook', ) -MIDDLEWARE_CLASSES = ( +MIDDLEWARE = ( 'django.contrib.sessions.middleware.SessionMiddleware', 'utils.middleware.MultipleProxyMiddleware', 'django.middleware.common.CommonMiddleware', diff --git a/dynamicweb/settings/local.py b/dynamicweb/settings/local.py index 4ea3dc7e..9f38f87d 100644 --- a/dynamicweb/settings/local.py +++ b/dynamicweb/settings/local.py @@ -15,7 +15,7 @@ CACHES = { } } -MIDDLEWARE_CLASSES += ("debug_toolbar.middleware.DebugToolbarMiddleware",) +MIDDLEWARE += ("debug_toolbar.middleware.DebugToolbarMiddleware",) INSTALLED_APPS += ( 'django_extensions', diff --git a/requirements.txt b/requirements.txt index 707309ef..9fbaf5e6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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