@codingkevin
i write code
Experienced developer, still love the nuts and bolts of it all. Never satisfied with current knowledge, always seeking more.
Nothing here yet.
No blogs yet.
Which line are you getting the error on? If it's line 6, I would say that kafka isn't installed correctly on your machine. If it's line 12, try: producer = KafkaProducer(bootstrap_servers="Broker_list") The namespace is unnecessary as you've already directly imported it. If you want to keep the namespace, change line 6 to: import kafka