Skip to content

kafka-tools overwrites kafka-python __init__ #110

@adam-mrozik

Description

@adam-mrozik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions