-
Notifications
You must be signed in to change notification settings - Fork 8.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
render() got an unexpected keyword argument 'close' #1056
render() got an unexpected keyword argument 'close' #1056
Comments
I believe |
I tried |
I dont need to close the environment with env.close(). Doing "env.render(close=True)" was allowing before to close the env window with a mouse by pressing on the 'X' icon of the window. Without close=True the windows freezes and you have to restart the kernel to fix it. |
|
It was crashing on my win10 PC, I found a fix openai/gym#1056 and applied it.
It was crashing on my win10 PC, I found a fix openai/gym#1056 and applied it.
Updating gym works for me. Use |
most environments use env.close() to close the renderer, this makes it work like the others mentioned by the maintainers of the gym here: openai/gym#1056
as mentioned here: openai/gym#1056 (comment) close=True was removed a while ago, so this change just adds an 'env.close' method exactly the same as the way you were doing it, without removing the old way, so it's hopefully backwards compatible (let's test it!)
this helps clean up the render windows as mentioned here openai/gym#1056 (comment)
as mentioned here: openai/gym#1056 (comment) close=True was removed a while ago, so this change just adds an 'env.close' method exactly the same as the way you were doing it, without removing the old way, so it's hopefully backwards compatible (let's test it!)
Code:
env.render(close=True)
Using windows 10 + anaconda + jupyter. Tried gym ver. 0.10.5 and 0.10.3
The text was updated successfully, but these errors were encountered: