Skip to content

Errors when using simulation environment #68

Open
@vietanhle-hri

Description

I just tried running

python train.py --policy sarl

and see an error

Traceback (most recent call last):
  File "train.py", line 177, in <module>
    main()
  File "train.py", line 76, in main
    env = gym.make('CrowdSim-v0')
  File "/home/vale/github/trajnet++/trajnetv/lib/python3.8/site-packages/gym/envs/registration.py", line 669, in make
    env = PassiveEnvChecker(env)
  File "/home/vale/github/trajnet++/trajnetv/lib/python3.8/site-packages/gym/wrappers/env_checker.py", line 20, in __init__
    assert hasattr(
AssertionError: The environment must specify an action space. https://www.gymlibrary.dev/content/environment_creation/

Can anyone help me to fix this?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions