MrRobb / gym-rs

OpenAI Gym bindings for Rust
MIT License
61 stars 4 forks source link

Not all `id`s from `OpenAI` recognised #7

Closed worikgh closed 5 years ago

worikgh commented 5 years ago

I have been playing with basic-rs replacing CartPole-v0 with envs from OpenAI. Some work some do not. The ones that fail seem to fail here:

I had errors with:

Apparently working:

Etcetera.

What can I do to help?

worikgh commented 5 years ago

Here is solution. pip3 install box2d-py box2d-kengz Box2D The reccomendation at that link is that you need box2d-py and NOT Box2D. But I made most progress with them both. Get another error:

TypeError: Object of type int64 is not JSON serializable

At:

  File "/usr/lib/python3.7/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '

I think. But python is all magic incantation to me so I do not think I can get further than that

MrRobb commented 5 years ago

Yes, I have managed to get it working by installing box2d-py and then editing the python script a little but I would like to make sure that there are no breaking changes. Sorry for the inconvenience, this is at a very early stage because the original repo gym-http-api seems to be abandoned.

This week I will try rebuilding the Python script to make it work properly and support the latest version of the dependencies. I will support these environments. I don't know why it doesn't support the "Hopper-v2" and "Ant-v2". Maybe the version of the gym library.

Again, sorry for the inconvenience but just letting you know that I am actively working on it.

MrRobb commented 5 years ago

Even though I got it working the results are far from great because of an issue in December of 2018. I think that working with the latest versions of the library will get rid of a lot of problems.

Screenshot 2019-10-07 at 11 22 49
MrRobb commented 5 years ago

Hello @worikgh, the issues with CarRacing-v0 are now solved. I have not been able to try the Hopper-v2 because you need a mojuco license. I have asked for it, but it will take a while. Check out the release notes.