报错
[2019-02-16 15:47:43,063: ERROR/MainProcess] Unrecoverable error: AttributeError("'str' object has no attribute 'items'",)
Traceback (most recent call last):
File "/home/damon96/.virtualenvs/oakvipENV/lib/python3.6/site-packages/celery/worker/__init__.py", line 206, in start
self.blueprint.start(self)
File "/home/damon96/.virtualenvs/oakvipENV/lib/python3.6/site-packages/celery/bootsteps.py", line 123, in start
step.start(parent)
File "/home/damon96/.virtualenvs/oakvipENV/lib/python3.6/site-packages/celery/bootsteps.py", line 374, in start
return self.obj.start()
File "/home/damon96/.virtualenvs/oakvipENV/lib/python3.6/site-packages/celery/worker/consumer.py", line 280, in start
blueprint.start(self)
File "/home/damon96/.virtualenvs/oakvipENV/lib/python3.6/site-packages/celery/bootsteps.py", line 123, in start
step.start(parent)
File "/home/damon96/.virtualenvs/oakvipENV/lib/python3.6/site-packages/celery/worker/consumer.py", line 884, in start
c.loop(*c.loop_args())
File "/home/damon96/.virtualenvs/oakvipENV/lib/python3.6/site-packages/celery/worker/loops.py", line 76, in asynloop
next(loop)
File "/home/damon96/.virtualenvs/oakvipENV/lib/python3.6/site-packages/kombu/async/hub.py", line 340, in create_loop
cb(*cbargs)
File "/home/damon96/.virtualenvs/oakvipENV/lib/python3.6/site-packages/kombu/transport/redis.py", line 1019, in on_readable
self._callbacks[queue](message)
File "/home/damon96/.virtualenvs/oakvipENV/lib/python3.6/site-packages/kombu/transport/virtual/__init__.py", line 534, in _callback
self.qos.append(message, message.delivery_tag)
File "/home/damon96/.virtualenvs/oakvipENV/lib/python3.6/site-packages/kombu/transport/redis.py", line 146, in append
pipe.zadd(self.unacked_index_key, delivery_tag, time()) \
File "/home/damon96/.virtualenvs/oakvipENV/lib/python3.6/site-packages/redis/client.py", line 2320, in zadd
for pair in iteritems(mapping):
File "/home/damon96/.virtualenvs/oakvipENV/lib/python3.6/site-packages/redis/_compat.py", line 122, in iteritems
return iter(x.items())
AttributeError: 'str' object has no attribute 'items'
# 解决
貌似是redis版本高了
pip install redis==2.10.6
搞屁啊 告了半天是python 的redis包版本告了
不是redis这个软件版本高了