AminHP / gym-anytrading

The most simple, flexible, and comprehensive OpenAI Gym trading environment (Approved by OpenAI Gym)
MIT License
2.13k stars 467 forks source link

KeyError: 'render_modes' while creating 'stock-v0' environment #71

Closed Olwar closed 2 years ago

Olwar commented 2 years ago

image

Don't know how to solve this.

I've tried so far: Deleted all the parameters Tried to set render_mode="Human" and "rgb_array", "True" and "False" none of these work Downgraded gym to 0.24.1 and 0.20.0

Whole code: image

AminHP commented 2 years ago

Hi @Olwar,

In this line of code, change render.modes to render_modes. I will make the project compatible with newer versions of gym and release a fixed version soon.

Olwar commented 2 years ago

Hey AminHP,

Thank you very much, that fixed the issue! Also thank you for this repository, it helps a lot.