New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'float' object has no attribute 'items' #5175
Comments
I'm getting a very similar error this morning:
Python 2.7, Redis 3.0.0.post1 |
Not a celery issue - Seems to be an issue with Redis 3.0.0.post1 installed via pip. Solution: Roll back redis with pip: everything working again for me. |
Dependency pinning is a celery issue. Looks to be fixed here though |
Can we quick release 4.2.2 to solve this please? |
You can pin the dependency outside of Celery until this is fixed. |
Latest redis 3.0.1 version is not compatiable with celery, lock the version to 2.10.6 for now. Celery have updated with: celery/celery#5175 not release yet. Signed-off-by: Wayne Sun <gsun@redhat.com>
There was a bug in the latest version of redis package that caused our celery containers to crash. After inspecting the dependencies of all packages, we figured out that redlock hadn't pinned the version of redis due to which the version of redis got upgraded. celery issue for reference celery/celery#5175
Causing celery/celery#5175 Bug: T209852
Causing celery/celery#5175 Bug: T209852
Pipenv users: add |
it's fixed in kombu and celery master |
new version causes a bug: celery/celery#5175
To avoid problems with 3.0 release, see celery/celery#5175 Signed-off-by: Michal Čihař <michal@cihar.com>
Can we get a patch release for celery? |
thanks |
Redis is used as a message broker for Celery. Celery was not pinning properly to Redis and there was an issue with Redis 3.0.0.post1. This pins our secondary Redis dependency to 2.10.6. See celery/celery#5175
This is needed for using with pretalx-docker due to pretalx#534 and celery/celery#5175
A patch release would be great!!! Is there something the community can do to make it possible sooner rather than later? As you can see, many related projects are referring to this issue and pinning down the redis version. |
I did release a patch for kombu. It should resolve the issue. |
Worked thank you !! |
It should be fixed in newest update: Celery 4.3.0 (kobu 4.5.0). |
True, this works in my case. |
Hi, |
@dhanashri88 - I don't think this is a Celery issue. Your issue report/tracceback is not complete, but it looks like this is a tensorboard issue. Please ask their support channel/mailing list/github issues for help. |
python==3.6.14, celery==4.1.0, redis==4.3.6 |
on running celery -A proj worker throws this error
[2018-11-15 12:02:53,607: CRITICAL/MainProcess] Unrecoverable error: AttributeError("'float' object has no attribute 'items'",)
Traceback (most recent call last):
File "/user/lib/python3.6/site-packages/celery/worker/worker.py", line 205, in start
self.blueprint.start(self)
File "/user/lib/python3.6/site-packages/celery/bootsteps.py", line 119, in start
step.start(parent)
File "/user/lib/python3.6/site-packages/celery/bootsteps.py", line 369, in start
return self.obj.start()
File "/user/lib/python3.6/site-packages/celery/worker/consumer/consumer.py", line 317, in start
blueprint.start(self)
File "/user/lib/python3.6/site-packages/celery/bootsteps.py", line 119, in start
step.start(parent)
File "/user/lib/python3.6/site-packages/celery/worker/consumer/consumer.py", line 593, in start
c.loop(*c.loop_args())
File "/user/lib/python3.6/site-packages/celery/worker/loops.py", line 91, in asynloop
next(loop)
File "/user/lib/python3.6/site-packages/kombu/asynchronous/hub.py", line 354, in create_loop
cb(*cbargs)
File "/user/lib/python3.6/site-packages/kombu/transport/redis.py", line 1040, in on_readable
self.cycle.on_readable(fileno)
File "/user/lib/python3.6/site-packages/kombu/transport/redis.py", line 337, in on_readable
chan.handlerstype
File "/user/lib/python3.6/site-packages/kombu/transport/redis.py", line 724, in _brpop_read
self.connection._deliver(loads(bytes_to_str(item)), dest)
File "/user/lib/python3.6/site-packages/kombu/transport/virtual/base.py", line 983, in _deliver
callback(message)
File "/user/lib/python3.6/site-packages/kombu/transport/virtual/base.py", line 632, in _callback
self.qos.append(message, message.delivery_tag)
File "/user/lib/python3.6/site-packages/kombu/transport/redis.py", line 149, in append
pipe.zadd(self.unacked_index_key, time(), delivery_tag)
File "/user/lib/python3.6/site-packages/redis/client.py", line 2263, in zadd
for pair in iteritems(mapping):
File "/user/lib/python3.6/site-packages/redis/_compat.py", line 123, in iteritems
return iter(x.items())
AttributeError: 'float' object has no attribute 'items'
Using Python 3.6.6, redis 3.0.0.post1
The text was updated successfully, but these errors were encountered: