kafka-python
kafka-python copied to clipboard
ImportError: cannot import name 'IncompatibleBrokerVersion'
Hi, last month I implemented the Kafka system on my Django project, I have not had any problems until today when the error in the title appeared
ImportError: cannot import name 'IncompatibleBrokerVersion'
this is my code, i am using version
from kafka.admin import KafkaAdminClient, NewTopic
try:
admin_client = KafkaAdminClient(
bootstrap_servers=settings_logpipe["KAFKA_BOOTSTRAP_SERVERS"],
client_id="myhouse",
api_version=(2, 5, 0)
)
Name: kafka-python
Version: 2.0.2
Summary: Pure Python client for Apache Kafka
Python 3.6.8 (default, Nov 16 2020, 16:55:22)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux
Can you help me? I don't understand why it got bugged, if you need more info let me know.
Thanks in advance