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

Solution: Import the 'DiagonalMovement' module

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

from pathfinding.core.diagonal_movement import DiagonalMovement

 

For more information:
Python pathfinding DiagonalMovement