SyntaxError on “self.async” when running python kafka producer

You need to install kafka-python, not kafka package. If kafka is installed, then you need to pip uninstall kafka and replace with the other

https://github.com/dpkp/kafka-python/issues/1566

Leave a Comment