marlgrid icon indicating copy to clipboard operation
marlgrid copied to clipboard

TypeError: __init__() missing 1 required positional argument: 'save_root

Open tripathi-abhishek opened this issue 3 years ago • 1 comments

In examples folder, while running video_test.py throws the following error.

abhishek@abhishek-ubuntu:~/Desktop/marlgrid-master$ /usr/bin/python3 /home/abhishek/Desktop/marlgrid-master/examples/video_test.py

/usr/local/lib/python3.8/dist-packages/gym_minigrid-1.0.2-py3.8.egg/gym_minigrid/roomgrid.py:302: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if front_cell is None or front_cell.type is 'wall':
Traceback (most recent call last):
  File "/home/abhishek/Desktop/marlgrid-master/examples/video_test.py", line 7, in <module>
    env = GridRecorder(env, render_kwargs={"tile_size": 11})
TypeError: __init__() missing 1 required positional argument: 'save_root'

Problem solved using pycharm

I copied the steps from your video:

pip install git+git://github.com/kandouss/marlgrid.git

import gym, marlgrid.envs env = gym.make('Goalcycle-demo-solo-v0')

Now, when I am trying to run the "video_test.py"(this file did not get downloaded using the first command), it throws the error.

tripathi-abhishek avatar Apr 03 '21 06:04 tripathi-abhishek

any updates??

tripathi-abhishek avatar Apr 26 '21 04:04 tripathi-abhishek