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

Gym dependency will not install #729

Closed
levmckinney opened this issue Jun 7, 2023 · 2 comments · Fixed by #735
Closed

Gym dependency will not install #729

levmckinney opened this issue Jun 7, 2023 · 2 comments · Fixed by #735
Labels
bug Something isn't working

Comments

@levmckinney
Copy link
Collaborator

levmckinney commented Jun 7, 2023

Bug description

When attempting to install the gym dependency I get the following error:

  error: subprocess-exited-with-error
  
  × python setup.py egg_info 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: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.

Steps to reproduce

Attempt to install imitation from source with a setuptools version grater than 65 see openai/gym#3176

Environment

  • Operating system and version: archlinux
  • Python version: 3.8

Mitigation

This can be mitigated by downgrading to setuptools==65.5.0 as pointed out in openai/gym#3176 (comment).

@levmckinney levmckinney added the bug Something isn't working label Jun 7, 2023
@levmckinney
Copy link
Collaborator Author

levmckinney commented Jun 7, 2023

It seems like the only long term solution here is to switch to gymnasium #666. Stablebaslines now uses gymnasium by default DLR-RM/stable-baselines3#1327. Continuing to use the unmaintained gym dependency is untenable long term.

@AdamGleave
Copy link
Member

Closing in favor of #734

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants