openai / gym

A toolkit for developing and comparing reinforcement learning algorithms.
https://www.gymlibrary.dev
Other
34.52k stars 8.59k forks source link

Running Classic Environment in Google Colab gives Attribute error #1613

Closed RahulKumar-NIT closed 5 years ago

RahulKumar-NIT commented 5 years ago

I am trying to run MountainCar-v0 on google colab, when i try video recording of gym environment and displaying it using

 def wrap_env(env):

  env = Monitor(env, './video', force=True)
  return env`

It gives error on env.reset()

github

christopherhesse commented 5 years ago

Thanks for the bug report! This should already be fixed by this change: https://github.com/openai/gym/commit/f4d3c075e8486b90cbc5f16a8d71f091be269939