How to Solve NameError: name 'FFIConstants' is not defined

Solution: Import the 'FFIConstants' module

# Add the following line to the top of your code
import FFIConstants

 

For more information:
Python FFIConstants