Skip to content

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

@yyf17

Description

@yyf17

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions