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

OpenAI Plugin Error #110

Closed
rahulrajus opened this issue Jul 16, 2018 · 4 comments
Closed

OpenAI Plugin Error #110

rahulrajus opened this issue Jul 16, 2018 · 4 comments

Comments

@rahulrajus
Copy link

rahulrajus commented Jul 16, 2018

Hi, I was going through the OpenAI Plugin Tutorial and everything ran/built correctly until I ran test_openai.py. I received the following error

Traceback (most recent call last):
File "test_openai.py", line 34, in
test_openai()
File "test_openai.py", line 18, in test_openai
env = gym.make('scrimmage-v0')
File "/home/rajan/.local/lib/python2.7/site-packages/gym/envs/registration.py", line 167, in make
return registry.make(id)
File "/home/rajan/.local/lib/python2.7/site-packages/gym/envs/registration.py", line 119, in make
env = spec.make()
File "/home/rajan/.local/lib/python2.7/site-packages/gym/envs/registration.py", line 86, in make
env = cls(**self._kwargs)
IndexError: map::at

Please let me know how I can resolve this error.

@esquires
Copy link
Collaborator

Thanks for filing an issue. I ran through the tutorial but wasn't able to recreate the error.

@laurathepluralized I think you recently went through the tutorial. Did you have this issue by chance?

@Slickboy I tried stepping through what happens in registration.py when it does env = cls(**self._kwargs) but didn't see anything obvious that would cause this error. Can you post what version of openai you are using?

$ python
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gym
>>> gym.__version__
'0.10.5'

@rahulrajus
Copy link
Author

Thanks for the help @esquires ! I actually managed to resolve the error- in the mission xml file, I had to pass in the "radius" parameter.
<autonomy radius="1.0">SimpleLearner</autonomy>

@esquires
Copy link
Collaborator

Thanks. scrimmage now has updated documentation to reflect that suggestion.

http://www.scrimmagesim.org/docs/sphinx/html/tutorials/openai-plugin.html#plugin-parameter-file

It looks like you re-opened the ticket. Do you need anything else?

@esquires
Copy link
Collaborator

I am going to go ahead and close this. If you have additional questions feel free to re-open

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