deep-rl-tensorflow icon indicating copy to clipboard operation
deep-rl-tensorflow copied to clipboard

gym env.monitor.start should be replaced for new gym version:

Open ethene opened this issue 8 years ago • 1 comments

Traceback (most recent call last): File "main.py", line 172, in tf.app.run() File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 43, in run sys.exit(main(sys.argv[:1] + flags_passthrough)) File "main.py", line 169, in main agent.play(conf.ep_end) File "../deep-rl-tensorflow/agents/agent.py", line 101, in play self.env.env.monitor.start(gym_dir) File "/usr/local/lib/python2.7/dist-packages/gym/core.py", line 92, in monitor raise error.Error("env.monitor has been deprecated as of 12/23/2016. Remove your call to env.monitor.start(directory) and instead wrap your env with env = gym.wrappers.Monitor(env, directory) to record data.") gym.error.Error: env.monitor has been deprecated as of 12/23/2016. Remove your call to env.monitor.start(directory) and instead wrap your env with env = gym.wrappers.Monitor(env, directory) to record data.

ethene avatar Feb 26 '17 09:02 ethene

I got the same problem

AlexZhou1995 avatar Mar 03 '17 02:03 AlexZhou1995