Skip to content
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

Not all ids from OpenAI recognised #7

Closed
worikgh opened this issue Oct 6, 2019 · 4 comments
Closed

Not all ids from OpenAI recognised #7

worikgh opened this issue Oct 6, 2019 · 4 comments

Comments

@worikgh
Copy link

worikgh commented Oct 6, 2019

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:

  • CarRacing-v0
  • CarRacing-v0
    Both had same error
ModuleNotFoundError: No module named 'Box2D'
thread 'main' panicked at 'Could not make environment because of error:
expected value at line 1 column 1', examples/basic.rs:11:14
  • Ant-v2
  • Hopper-v2
    Both had same error
[2019-10-07 09:47:18,255] Making new env: Hopper-v2
/home/worik/.local/lib/python3.7/site-packages/gym/envs/registration.py:17: PkgResourcesDeprecationWarning: Parameters to load are deprecated.  Call .resolve and .require separately.
  result = entry_point.load(False)
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/libcore/option.rs:378:21

Apparently working:

  • Acrobot-v1
  • MountainCar-v0

Etcetera.

What can I do to help?

@worikgh
Copy link
Author

worikgh commented Oct 7, 2019

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
Copy link
Owner

MrRobb commented Oct 7, 2019

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
Copy link
Owner

MrRobb commented Oct 7, 2019

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
Copy link
Owner

MrRobb commented Oct 11, 2019

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.

@MrRobb MrRobb closed this as completed Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants