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'm encountering an issue with importing KafkaProducer from the kafka module. Here's the code I'm using:
from kafka import KafkaProducer
The error message I'm receiving is: "cannot import name 'KafkaProducer' from partially initialized module 'kafka' (most likely due to a circular import)".
I'm running Kafka on Docker, and it's functioning properly. My goal is simply to send messages from my Python file to Kafka.
I've tried uninstalling and reinstalling the kafka-python library, but I'm still having the same error.
Thanks for the help!
The text was updated successfully, but these errors were encountered:
I'm encountering an issue with importing KafkaProducer from the kafka module. Here's the code I'm using:
from kafka import KafkaProducer
The error message I'm receiving is: "cannot import name 'KafkaProducer' from partially initialized module 'kafka' (most likely due to a circular import)".
I'm running Kafka on Docker, and it's functioning properly. My goal is simply to send messages from my Python file to Kafka.
I've tried uninstalling and reinstalling the kafka-python library, but I'm still having the same error.
Thanks for the help!
The text was updated successfully, but these errors were encountered: