EvolutionGym / evogym

A large-scale benchmark for co-optimizing the design and control of soft robots, as seen in NeurIPS 2021.
https://evolutiongym.github.io/
MIT License
193 stars 33 forks source link

gymnasium.error.NameNotFound: Environment `Walker` doesn't exist. #47

Closed csvelayutham closed 2 months ago

csvelayutham commented 2 months ago

I installed Evogym following the instructions. When I tried to run the gym_test.py file I get the following error.

Traceback (most recent call last): File "/home/cs_velayutham/Documents/Koding/EvoRo/evogym/examples/gym_test.py", line 9, in env = gym.make('Walker-v0', body=body, render_mode='human') File "/home/cs_velayutham/.local/lib/python3.10/site-packages/gymnasium/envs/registration.py", line 741, in make env_spec = _find_spec(id) File "/home/cs_velayutham/.local/lib/python3.10/site-packages/gymnasium/envs/registration.py", line 527, in _find_spec _check_version_exists(ns, name, version) File "/home/cs_velayutham/.local/lib/python3.10/site-packages/gymnasium/envs/registration.py", line 393, in _check_version_exists _check_name_exists(ns, name) File "/home/cs_velayutham/.local/lib/python3.10/site-packages/gymnasium/envs/registration.py", line 370, in _check_name_exists raise error.NameNotFound( gymnasium.error.NameNotFound: Environment Walker doesn't exist. Did you mean: Walker2d?

csvelayutham commented 2 months ago

I got it resolved. I found the following response for feature request stating the availability of evogym in pip supporting recent versions of Python.

https://github.com/EvolutionGym/evogym/issues/35#issuecomment-2216294724

So I ran the following

pip install evogym --upgrade (Ref. https://socket.dev/pypi/package/evogym)

The test installation works fine now. Thanks for a wonderful software.

jagdeepsb commented 2 months ago

Glad this worked for you!