evogym icon indicating copy to clipboard operation
evogym copied to clipboard

Gym dependency

Open d9w opened this issue 2 years ago • 0 comments

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.

d9w avatar Apr 20 '23 02:04 d9w