-
Notifications
You must be signed in to change notification settings - Fork 915
'cimpl.Consumer' object has no attribute 'offsets_for_times' #304
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
Comments
That looks like you are using an old version of confluent-kafka-python and/or librdkafka or that it is picking up a stray cimpl.so from somewhere. |
I am also facing the same issue: |
librdkafka 0.9.2 is really old, please upgrade to librdkafka >= v0.11.1. |
The implementation of So you can either wait for an update from pip, or, if you are impatient like me, you can compile it yourself. Here's the example commands (tested in docker image
Then, verify by:
|
You might be interested to know that in the upcoming v0.11.4 release we'll bundle librdkafka (and its dependencies) in a binary wheel, voiding the need to install librdkafka separately. There is a release candidate that you can try out (and please report your installation experience), see this comment for instructions: #184 (comment) |
I am encountering a similar issue with 'subscription':
Output of |
@miikmaac are you sure you didn't mean to use The method As denoted by the leading underscore the attribute Perhaps you are actually looking to execute |
@rnpridgeon Thanks - I guess I was looking at the wrong docs, these are the ones I was going off of: https://kafka-python.readthedocs.io/en/latest/apidoc/KafkaConsumer.html |
@miikmaac understood, that's actually a different client despite the deceptively similar name |
Description
When run the examples/integration_test.py , i run into the error.
AttributeError: 'cimpl.Consumer' object has no attribute 'offsets_for_times'
How to reproduce
Checklist
Please provide the following information:
python -c 'from confluent_kafka import version ; print(version())'
('0.11.0', 720896)
The text was updated successfully, but these errors were encountered: