How to Solve NameError: name 'KS_MODE_ARM' is not defined -- keystone

Solution: Import the 'KS_MODE_ARM' module

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

from keystone import KS_MODE_ARM

 

For more information:
Python keystone KS_MODE_ARM