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

Errors when using simulation environment #68

Open
vietanhle-hri opened this issue Jun 28, 2023 · 1 comment
Open

Errors when using simulation environment #68

vietanhle-hri opened this issue Jun 28, 2023 · 1 comment

Comments

@vietanhle-hri
Copy link

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?

@ChanganVR
Copy link
Contributor

Please refer to this issue to solution: #65

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