Solar-Helix-Independent-Transport / allianceauth-discordbot

allianceauth-discordbot
MIT License
6 stars 19 forks source link

ImportError: cannot import name 'Celery' #44

Closed BMDController closed 1 year ago

BMDController commented 3 years ago

Hey there,

My AA has been stable for quite some time until I tried installing this app. I'm sure it's an error I made on my side but since I am a bit green, I am looking for some assistance.

When I run the python migration, I get this error ImportError: cannot import name 'Celery'

Traceback (most recent call last): File "manage.py", line 22, in execute_from_command_line(sys.argv) File "/home/allianceserver/venv/auth/lib/python3.6/site-packages/django/core/management/init.py", line 401, in execute_from_command_line utility.execute() File "/home/allianceserver/venv/auth/lib/python3.6/site-packages/django/core/management/init.py", line 395, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/allianceserver/venv/auth/lib/python3.6/site-packages/django/core/management/base.py", line 343, in run_from_argv connections.close_all() File "/home/allianceserver/venv/auth/lib/python3.6/site-packages/django/db/utils.py", line 232, in close_all for alias in self: File "/home/allianceserver/venv/auth/lib/python3.6/site-packages/django/db/utils.py", line 226, in iter return iter(self.databases) File "/home/allianceserver/venv/auth/lib/python3.6/site-packages/django/utils/functional.py", line 48, in get res = instance.dict[self.name] = self.func(instance) File "/home/allianceserver/venv/auth/lib/python3.6/site-packages/django/db/utils.py", line 153, in databases self._databases = settings.DATABASES File "/home/allianceserver/venv/auth/lib/python3.6/site-packages/django/conf/init.py", line 82, in getattr self._setup(name) File "/home/allianceserver/venv/auth/lib/python3.6/site-packages/django/conf/init.py", line 69, in _setup self._wrapped = Settings(settings_module) File "/home/allianceserver/venv/auth/lib/python3.6/site-packages/django/conf/init.py", line 170, in init mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/lib/python3.6/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 994, in _gcd_import File "", line 971, in _find_and_load File "", line 941, in _find_and_load_unlocked File "", line 219, in _call_with_frames_removed File "", line 994, in _gcd_import File "", line 971, in _find_and_load File "", line 941, in _find_and_load_unlocked File "", line 219, in _call_with_frames_removed File "", line 994, in _gcd_import File "", line 971, in _find_and_load File "", line 955, in _find_and_load_unlocked File "", line 665, in _load_unlocked File "", line 678, in exec_module File "", line 219, in _call_with_frames_removed File "/home/allianceserver/myauth/myauth/init.py", line 1, in from .celery import app as celery_app File "/home/allianceserver/myauth/myauth/celery.py", line 2, in from celery import Celery ImportError: cannot import name 'Celery'

PIP LIST

aa-corpstats-two (1.1.6) aa-freight (1.5.1) aa-memberaudit (1.4.0) aa-structures (1.14.2) aiohttp (3.7.4.post0) aioredis (1.3.1) allianceauth (2.8.6) allianceauth-app-utils (1.8.0) allianceauth-discordbot (0.5.2) amqp (5.0.6) anyjson (0.3.3) asgiref (3.4.1) async-timeout (3.0.1) attrs (21.2.0) bcrypt (3.2.0) billiard (3.6.4.0) bravado (10.6.3) bravado-core (5.17.0) cached-property (1.5.2) celery (5.1.2) celery-once (3.0.1) certifi (2021.5.30) cffi (1.14.6) chardet (4.0.0) charset-normalizer (2.0.3) click (7.1.2) click-didyoumean (0.0.3) click-plugins (1.1.1) click-repl (0.2.0) confusable-homoglyphs (3.2.0) dhooks-lite (0.6.1) discord.py (1.7.3) discordproxy (0.1.0) Django (3.1.13) django-bitfield (2.1.0) django-bootstrap-form (3.4) django-celery-beat (2.2.0) django-esi (2.1.0) django-eveuniverse (0.8.0) django-model-utils (4.1.1) django-multiselectfield (0.1.12) django-navhelper (0.1) django-redis-cache (3.0.0) django-registration (3.2) django-sortedm2m (3.0.2) django-timezone-field (4.2.1) dnspython (2.1.0) fittings (1.0.6) grpcio (1.39.0) grpcio-tools (1.39.0) gunicorn (20.1.0) hiredis (2.0.0) humanize (3.10.0) idna (3.2) idna-ssl (1.1.0) importlib-metadata (4.6.1) jsonpointer (2.1) jsonref (0.2) jsonschema (3.2.0) kombu (5.1.0) monotonic (1.6) msgpack (1.0.2) multidict (5.1.0) mysqlclient (2.0.3) oauthlib (3.1.1) openfire-restapi (0.2.0) packaging (20.9) passlib (1.7.4) pendulum (2.1.2) pip (9.0.1) pkg-resources (0.0.0) prompt-toolkit (3.0.19) protobuf (3.17.3) pycparser (2.20) pydiscourse (1.1.2) pyparsing (2.4.7) pyrsistent (0.18.0) python-crontab (2.5.1) python-dateutil (2.8.2) python-slugify (5.0.2) pytz (2021.1) pytzdata (2020.1) PyYAML (5.4.1) redis (3.5.3) redis-simple-mq (0.4.0) requests (2.26.0) requests-oauthlib (1.3.0) rfc3987 (1.3.8) semantic-version (2.8.5) setuptools (57.4.0) simplejson (3.17.3) six (1.16.0) sleekxmpp (1.3.3) sqlparse (0.4.1) strict-rfc3339 (0.7) swagger-spec-validator (2.7.3) text-unidecode (1.3) typing (3.7.4.3) typing-extensions (3.10.0.0) urllib3 (1.26.6) vine (5.0.0) wcwidth (0.2.5) webcolors (1.11.1) wheel (0.36.2) yarl (1.6.3) zipp (3.5.0)

During the installation, the app uninstalls celery 3.0.19 and installs 4.4.7 which seems to be why I get this error. Do I have to change dependencies around?

pvyParts commented 1 year ago

If you still have issues please feel free to reopen