How to Solve NameError: name 'SimpleClient' is not defined -- kafka

Solution: Import the 'SimpleClient' module

To Solve the error, add the following line to the top of your code.

from kafka import SimpleClient

 

For more information:
Python kafka SimpleClient