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.
Hey,
I am using
poetrytool to manage my dependencies.My package uses
aiokafkafor consumer/producer management withkafka-pythonas its dependency.When istalling both
kafka-toolsandaiokafka,kafka-toolsoverwrites__init__.pyfile fromkafka-pythondependency, resulting in an error from aiokafka:ImportError: cannot import name 'ConsumerRebalanceListener' from 'kafka'.How can I solve it? It obviously happens because both
kafka-pythonandkafka-toolsdecided to name their moduleskafka, which results in one overwriting another.