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
195 stars 33 forks source link

Gym dependency #26

Closed d9w closed 3 months ago

d9w commented 1 year ago

Evogym currently depends on gym 0.19.0, however pip no longer supports installing this version

pip install gym==0.19.0
Collecting gym==0.19.0
  Using cached gym-0.19.0.tar.gz (1.6 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in gym setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

More recent versions of gym (>0.26.0) have changed their API and in the future, gym will be replaced by gymnasium, which uses the gym>0.26.0 API. Would it be possible to update the dependency to gymnasium and change the API?

For now, I've been able to use evogym with version 0.22.0 of gym, however this breaks the requirement to have stable-baselines3==1.4.0 in requirements.txt. This requirement doesn't seem necessary to run evogym, just to run the examples.

Okabe-Junya commented 4 months ago

Hello @d9w!

FYI: #35 would be helpful for you, thank you!

jagdeepsb commented 3 months ago

Updated in v2.0.0. Feel free to reopen this issue if the problem persists!