kafka-tools icon indicating copy to clipboard operation
kafka-tools copied to clipboard

kafka-tools overwrites kafka-python `__init__`

Open adam-mrozik opened this issue 3 years ago • 0 comments

Hey,

I am using poetry tool to manage my dependencies. My package uses aiokafka for consumer/producer management with kafka-python as its dependency. When istalling both kafka-tools and aiokafka, kafka-tools overwrites __init__.py file from kafka-python dependency, resulting in an error from aiokafka: ImportError: cannot import name 'ConsumerRebalanceListener' from 'kafka'.

How can I solve it? It obviously happens because both kafka-python and kafka-tools decided to name their modules kafka, which results in one overwriting another.

adam-mrozik avatar Feb 07 '22 17:02 adam-mrozik