I have python 3.7 and am trying to start up celery with the command below (I included the full stack trace as well). I have all this working in a python 3.5 but am upgrading everything then moving over my site to this updated server. Any help is greatly appreciated.
I've tried downgrading and using kombu=3.0.35 but got a different set of errors. From what I gather on searches on the internet, it appears that python 3.7 has changed the async.
(virtual_env) celery -A myproject worker --loglevel=INFO --concurrency=5
Traceback (most recent call last):
File bin/celery", line 11, in
sys.exit(main())
File "lib/python3.7/site-packages/celery/__main__.py", line 13, in main
from celery.bin.celery import main as _main
File "lib/python3.7/site-packages/celery/bin/__init__.py", line 2, in
from .base import Option
File "lib/python3.7/site-packages/celery/bin/base.py", line 17, in
from celery import VERSION_BANNER, Celery, maybe_patch_concurrency
File "
File "lib/python3.7/site-packages/celery/local.py", line 509, in __getattr__
module = __import__(self._object_origins[name], None, None, [name])
File "lib/python3.7/site-packages/celery/app/__init__.py", line 5, in
from celery import _state
File "lib/python3.7/site-packages/celery/_state.py", line 15, in
from celery.utils.threads import LocalStack
File "lib/python3.7/site-packages/celery/utils/__init__.py", line 10, in
from .nodenames import worker_direct, nodename, nodesplit
File "lib/python3.7/site-packages/celery/utils/nodenames.py", line 7, in
from kombu.entity import Exchange, Queue
File "lib/python3.7/site-packages/kombu/entity.py", line 6, in
from .abstract import MaybeChannelBound, Object
File "lib/python3.7/site-packages/kombu/abstract.py", line 6, in
from .connection import maybe_channel
File "lib/python3.7/site-packages/kombu/connection.py", line 893
return self.transport.implements.async
^
SyntaxError: invalid syntax
I believe this was fixed by #839. (This is a duplicate of #742.)
wait for new release of kombu
@auvipy do you know when the new release of kombu will be released to fix this issue. From clokep's link it appears it was a pull request to maybe fix this, so is it just a matter of waiting for it to be merged with the master and if so when do you think that will happen?
Thanks!
Stumbled onto this issue setting up a new max... Brew defaults to python3.7 out of the box and installing anything below 3.7 is a challenge. What is the movement on getting this release out?
@mgan59 Kombu version 4.2.0 has the fix - worked for me on Mac + Python 3.7
Most helpful comment
@mgan59 Kombu version 4.2.0 has the fix - worked for me on Mac + Python 3.7