How to Solve NameError: name 'POINTER' is not defined -- ctypes

Solution: Import the 'POINTER' module

To Solve the error, add the following line to the top of your code.

from ctypes import POINTER

 

For more information:
Python ctypes POINTER