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