Skip to content

Cannot import name 'KafkaProducer' from 'kafka' #2041

@Xiezhibin

Description

@Xiezhibin

I run the code "from kafka import KafkaProducer" in my jupyter-notebook, it report an error that "Cannot import name 'KafkaProducer' from 'kafka' (unknown location)"。

But the code work well in terminal。

Python: 3.7.7 in anaconda virtual environment

kafka-python:2.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions