How to Solve NameError: name '_' is not defined -- nova

Solution: Import the '_' module

# Add the following line to the top of your code
from nova.i18n import _

 

For more information:
nova _