Skip to content

AssertionError: The environment must specify an action space. https://www.gymlibrary.dev/content/environment_creation/ #20

Description

@grlinnn

Hello!

Recently, I faced a problem while executing the train.py

It says :
assert hasattr(
AssertionError: The environment must specify an action space. https://www.gymlibrary.dev/content/environment_creation/

When I look through the train.py, I didn't find something like " self.action_space = spaces.Discrete(4)" or so.

Is there any way to fix this issue?

Thank you very much! Sorry to bother you.

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