How to Solve NameError: name 'Grid' is not defined -- pathfinding

Solution: Import the 'Grid' module

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

from pathfinding.core.grid import Grid

 

For more information:
Python pathfinding Grid