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

got an unexpected keyword argument 'agent_loc' for env #13

Open
yyf17 opened this issue Apr 14, 2021 · 0 comments
Open

got an unexpected keyword argument 'agent_loc' for env #13

yyf17 opened this issue Apr 14, 2021 · 0 comments

Comments

@yyf17
Copy link

yyf17 commented Apr 14, 2021

when I run the following code:

env = gym.make(
    "audio-room-v0",
    room_config = room.generate(),
    agent_loc = agent_loc,
    corners = room.corners,
    max_order = 10,
    step_size = 1.0,
    acceptable_radius = 0.8,
)

Occured the errors as followings:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-6-47bcc3b1313f> in <module>
      6     max_order = 10,
      7     step_size = 1.0,
----> 8     acceptable_radius = 0.8,
      9 )

~/anaconda3/envs/oto/lib/python3.7/site-packages/gym/envs/registration.py in make(id, **kwargs)
    143 
    144 def make(id, **kwargs):
--> 145     return registry.make(id, **kwargs)
    146 
    147 def spec(id):

~/anaconda3/envs/oto/lib/python3.7/site-packages/gym/envs/registration.py in make(self, path, **kwargs)
     88             logger.info('Making new env: %s', path)
     89         spec = self.spec(path)
---> 90         env = spec.make(**kwargs)
     91         # We used to have people override _reset/_step rather than
     92         # reset/step. Set _gym_disable_underscore_compat = True on

~/anaconda3/envs/oto/lib/python3.7/site-packages/gym/envs/registration.py in make(self, **kwargs)
     58         else:
     59             cls = load(self.entry_point)
---> 60             env = cls(**_kwargs)
     61 
     62         # Make the environment aware of which spec it came from.

TypeError: __init__() got an unexpected keyword argument 'agent_loc'

would you help me?

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

1 participant