zuoxingdong/mazelab

TypeError: namedtuple() got an unexpected keyword argument 'defaults'

Shaier opened this issue · 0 comments

Following the jupyter notebook, I'm getting the above error when running the line:
from mazelab import BaseMaze

TypeError Traceback (most recent call last)
in
1 import numpy as np
----> 2 from mazelab import BaseMaze
3 from mazelab import Object
4 from mazelab import DeepMindColor as color
5

~/anaconda3/envs/slime/mazelab/mazelab/init.py in
3 from .object import Object
4
----> 5 from .motion import VonNeumannMotion
6 from .motion import MooreMotion
7

~/anaconda3/envs/slime/mazelab/mazelab/motion.py in
4 VonNeumannMotion = namedtuple('VonNeumannMotion',
5 ['north', 'south', 'west', 'east'],
----> 6 defaults=[[-1, 0], [1, 0], [0, -1], [0, 1]])
7
8

TypeError: namedtuple() got an unexpected keyword argument 'defaults'