我试图由Celery工作者和Redis服务器从我的应用程序中获取一些数据,但出现此错误:
Unrecoverable error: SyntaxError('invalid syntax', ('/home/g-luca/.local/lib/python3.7/site-packages/celery/backends/redis.py', 22, 19, 'from . import async, base\n'))
Traceback (most recent call last):
File "/home/g-luca/.local/lib/python3.7/site-packages/kombu/utils/objects.py", line 42, in __get__
return obj.__dict__[self.__name__]
KeyError: 'backend'
从输出中看到的是Celery在设置所有内容并使用python 3.6运行应用程序时处于python3.7下。