I am encountering the following error:
Traceback (most recent call last):
connection = KafkaProducer(kafka_settings['topic'], bootstrap_servers=kafka_settings['bootstrap_servers'])
TypeError: __init__() takes 1 positional argument but 2 were given
This is strange to me because I followed the documentation given. https://kafka-python.readthedocs.io/en/master/usage.html
How do I resolve this?