How to Solve NameError: name 'OffsetRequestPayload' is not defined -- kafka
Solution: Import the 'OffsetRequestPayload' module
To Solve the error, add the following line to the top of your code.
from kafka.common import OffsetRequestPayload
For more information:
Python kafka OffsetRequestPayload