Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kafka-tools overwrites kafka-python __init__ #110

Open
adam-mrozik opened this issue Feb 7, 2022 · 0 comments
Open

kafka-tools overwrites kafka-python __init__ #110

adam-mrozik opened this issue Feb 7, 2022 · 0 comments

Comments

@adam-mrozik
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant