How to Solve NameError: name 'BoxLayout' is not defined -- kivy

Solution: Import the 'BoxLayout' module

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

from kivy.uix.boxlayout import BoxLayout

 

For more information:
Python kivy BoxLayout