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