MineDojo / MineDojo

Building Open-Ended Embodied Agents with Internet-Scale Knowledge
MIT License
1.72k stars 152 forks source link

Bump gym version to fix setup.py error #104

Open thomashopkins32 opened 8 months ago

thomashopkins32 commented 8 months ago

Hello, it looks like the gym version 0.21.0 contains a typo in their setup.py which is causing an error when running:

pip install minedojo

Here is the fix made for gym version 0.22.0: https://github.com/openai/gym/commit/9180d12e1b66e7e2a1a622614f787a6ec147ac40

Can we bump the gym version to 0.22.0?

Here is the output with the error:

Collecting minedojo
  Using cached minedojo-0.1-py3-none-any.whl (1.1 MB)
Collecting pyyaml (from minedojo)
  Using cached PyYAML-6.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.1 kB)
Collecting jinja2 (from minedojo)
  Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting gym==0.21.0 (from minedojo)
  Using cached gym-0.21.0.tar.gz (1.5 MB)
  Preparing metadata (setup.py) ... 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.
hint: See above for details.
AkagawaTsurunaki commented 4 months ago

gym==0.22.0 works, thanks.