====================
Traceback (most recent call last):
File "\A_star.py", line 152, in
route_length, route_path = play(img)
File "\A_star.py", line 139, in play
grid = grid_map(img)
File "\A_star.py", line 16, in grid_map
if (np.array_equal(img[20+(i40), 20+(j40)], [255, 255, 255])):
TypeError: 'NoneType' object is not subscriptable
==================== Traceback (most recent call last): File "\A_star.py", line 152, in
route_length, route_path = play(img)
File "\A_star.py", line 139, in play
grid = grid_map(img)
File "\A_star.py", line 16, in grid_map
if (np.array_equal(img[20+(i40), 20+(j40)], [255, 255, 255])):
TypeError: 'NoneType' object is not subscriptable