首页 新闻 搜索 专区 学院

AttributeError("'str' object has no attribute 'items'",

0
[已关闭问题] 关闭于 2019-02-26 20:42

[tasks]
. generate_static_sku_detail_html
. send_active_email
. send_sms_code

[2019-02-26 19:19:46,668: INFO/MainProcess] Connected to redis://127.0.0.1@localhost:6379/14
[2019-02-26 19:19:46,679: INFO/MainProcess] mingle: searching for neighbors
[2019-02-26 19:19:47,687: INFO/MainProcess] mingle: all alone
[2019-02-26 19:19:47,724: WARNING/MainProcess] /home/python/.virtualenvs/meiduo_10/lib/python3.5/site-packages/celery/fixups/django.py:265: UserWarning: Using settings.DEBUG leads to a memory leak, never use this setting in production environments!
warnings.warn('Using settings.DEBUG leads to a memory leak, never '
[2019-02-26 19:19:47,725: WARNING/MainProcess] celery@ubuntu ready.
[2019-02-26 19:20:29,750: ERROR/MainProcess] Unrecoverable error: AttributeError("'str' object has no attribute 'items'",)
Traceback (most recent call last):
File "/home/python/.virtualenvs/meiduo_10/lib/python3.5/site-packages/celery/worker/init.py", line 206, in start
self.blueprint.start(self)
File "/home/python/.virtualenvs/meiduo_10/lib/python3.5/site-packages/celery/bootsteps.py", line 123, in start
step.start(parent)
File "/home/python/.virtualenvs/meiduo_10/lib/python3.5/site-packages/celery/bootsteps.py", line 374, in start
return self.obj.start()
File "/home/python/.virtualenvs/meiduo_10/lib/python3.5/site-packages/celery/worker/consumer.py", line 280, in start
blueprint.start(self)
File "/home/python/.virtualenvs/meiduo_10/lib/python3.5/site-packages/celery/bootsteps.py", line 123, in start
step.start(parent)
File "/home/python/.virtualenvs/meiduo_10/lib/python3.5/site-packages/celery/worker/consumer.py", line 884, in start
c.loop(c.loop_args())
File "/home/python/.virtualenvs/meiduo_10/lib/python3.5/site-packages/celery/worker/loops.py", line 76, in asynloop
next(loop)
File "/home/python/.virtualenvs/meiduo_10/lib/python3.5/site-packages/kombu/async/hub.py", line 340, in create_loop
cb(
cbargs)
File "/home/python/.virtualenvs/meiduo_10/lib/python3.5/site-packages/kombu/transport/redis.py", line 1019, in on_readable
self._callbacksqueue
File "/home/python/.virtualenvs/meiduo_10/lib/python3.5/site-packages/kombu/transport/virtual/init.py", line 534, in _callback
self.qos.append(message, message.delivery_tag)
File "/home/python/.virtualenvs/meiduo_10/lib/python3.5/site-packages/kombu/transport/redis.py", line 146, in append
pipe.zadd(self.unacked_index_key, delivery_tag, time()) File "/home/python/.virtualenvs/meiduo_10/lib/python3.5/site-packages/redis/client.py", line 2320, in zadd
for pair in iteritems(mapping):
File "/home/python/.virtualenvs/meiduo_10/lib/python3.5/site-packages/redis/_compat.py", line 122, in iteritems
return iter(x.items())
AttributeError: 'str' object has no attribute 'items'

刚学习这个不知道问题出在哪,去百度查,都是打包错误更新库之类的,求大神指点

琉璃456173的主页 琉璃456173 | 菜鸟二级 | 园豆:202
提问于:2019-02-26 19:27
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册