You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Hey,
I am using
poetry
tool to manage my dependencies.My package uses
aiokafka
for consumer/producer management withkafka-python
as its dependency.When istalling both
kafka-tools
andaiokafka
,kafka-tools
overwrites__init__.py
file fromkafka-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
andkafka-tools
decided to name their moduleskafka
, which results in one overwriting another.The text was updated successfully, but these errors were encountered: