ChanganVR / RelationalGraphLearning

[IROS20] Relational graph learning for crowd navigation
132 stars 41 forks source link

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

Open grlinnn opened 2 years ago

grlinnn commented 2 years ago

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.

ChanganVR commented 1 year ago

You probably just need to downgrade the version of the gym package, although I don't remember which version I was using exactly.