尝试使用python 3.6.4的芹菜4.1.0尝试运行Add.delay(1,2(的最基本测试,并获得以下错误:
[2018-02-27 13:58:50,194:info/mainprocess]收到任务: exb.tasks.test_tasks.add [52C3FB33-CE00-4165-AD18-15026ECA5E9]
[2018-02-27 13:58:50,194:Critical/MainProcess]无法恢复的错误: Systemerror("带有错误集的结果"(,trackback(大多数 最近的电话(:文件 "/opt/myapp/lib/python3.6/site-packages/kombu/messaging.py",第624行, 在_receive_callback中 返回on_m(消息(如果on_m else self.receive(解码,消息(文件 "/opt/myapp/lib/python3.6/site-packages/celery/worker/consumer/consumer.py", 第570行,在on_task_received 回调,文件"/opt/myapp/lib/python3.6/site-packages/celery/worker/strategy.py", 第145行,在task_message_handler中 hander(req(文件"/opt/myapp/lib/python3.6/site-packages/celery/worker/worker.py",line 221,在_process_task_sem中 返回self._quick_acquire(self._process_task,req(文件"/opt/myapp/lib/lib/python3.6/site-packages/kombu/async/semaphore.py", 第62行,收购 callback(*partial_args,** partial_kwargs(文件"/opt/myapp/lib/python3.6/site-packages/celery/worker/worker/worker.py",line 226,在_process_task中 req.execute_usis_pool(self.pool(文件"/opt/myapp/lib/python3.6/site-packages/celery/worker/worker/request.py", 第531行,在execute_using_pool中 correlation_id = task_id,文件"/opt/myapp/lib/python3.6/site-packages/celery/concurrency/base.py", 第155行,在apply_async中 **选项(文件"/opt/myapp/lib/python3.6/site-packages/billiard/pool.py",第1486行, 在apply_async中 self._quick_put((任务,(result._job,none,func,args,kwds(((文件 "/opt/myapp/lib/python3.6/site-packages/celery/concurrency/asynpool.py", 第813行,在send_job中 body = dumps(TUP,协议=协议(typeError:无法腌制MemoryView对象上述例外是以下例外的直接原因:
trackback(最近的最新通话(:文件 "/opt/myapp/lib/python3.6/site-packages/celery/worker/worker.py",line 203,首先 self.blueprint.start(self(文件"/opt/myapp/lib/python3.6/site-packages/celery/bootsteps.py",line 119,首先 step.start(parent(文件"/opt/myapp/lib/python3.6/site-packages/celery/bootsteps.py",line 370,一开始 返回self.obj.start((文件"/opt/myapp/lib/python3.6/site-packages/celery/worker/consumer/consumer/consumer.py", 第320行,一开始 blueprint.start(self(文件"/opt/myapp/lib/python3.6/site-packages/celery/bootsteps.py",line 119,首先 step.start(parent(文件"/opt/myapp/lib/python3.6/site-packages/celery/worker/consumer/consumer/consumer.py", 第596行,一开始 c.loop(*c.loop_args(((文件"/opt/myapp/lib/python3.6/site-packages/celery/worker/worker/loops.py",line 88,在异步 next(loop(文件"/opt/myapp/lib/python3.6/site-packages/kombu/async/hub.py" 在create_loop中 cb(*cbargs(文件"/opt/myapp/lib/python3.6/site-packages/kombu/kombu/transport/base.py",line 236,在on_predable中 读者(循环(文件"/opt/myapp/lib/python3.6/site-packages/kombu/transport/base.py",line 218,in _read drain_events(timeout = 0(文件"/opt/myapp/lib/python3.6/site-packages/librabbitmq-2.0.0.0.0.0-py3.6-linux-x86_64.egg/librabbitmq/ in PY", 第227行,排水 self._basic_recv(超时(systemerror:返回带有错误集的结果
我找不到任何人遇到此错误的任何证据。我从芹菜网站注意到只有python 3.5被称为支持,是问题吗?
是我缺少的东西吗?任何帮助将不胜感激!
更新:使用Python 3.5.5尝试,问题仍然存在。使用Django 4.0.2尝试,问题仍然存在。
更新:卸载的librabbitmq,问题停止了。从Python 2.7.5,Django 1.7.7到Python 3.6.4,Django 2.0.2。
卸载librabbitmq后,解决了问题。