kafka-tools
kafka-tools copied to clipboard
kafka-tools overwrites kafka-python `__init__`
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.