MatthewJA / Inverse-Reinforcement-Learning

Implementations of selected inverse reinforcement learning algorithms.
MIT License
957 stars 238 forks source link

super() takes at least 1 argument (0 given) #3

Closed xinleipan closed 7 years ago

xinleipan commented 7 years ago

File "../irl/mdp/objectworld.py", line 56, in init super().init(grid_size, wind, discount) TypeError: super() takes at least 1 argument (0 given)

Could anyone give any help?

MatthewJA commented 7 years ago

Are you using Python 3?

xinleipan commented 7 years ago

Thanks Matthew! I'm using python 2.7. However, when I directly run maxent_gridworld.py it works fine. But "maxent_objectworld.py" does not work well...

MatthewJA commented 7 years ago

The code is for Python 3 only — as you've found, it might work on Python 2, but only by coincidence. I recommend Python 3.4+.