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

Solution: Import the 'GridLayout' module

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

from kivy.uix.gridlayout import GridLayout

 

For more information:
Python kivy GridLayout