AminHP/gym-anytrading

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

Olwar opened this issue · 2 comments

Olwar commented

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

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

Hey AminHP,

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