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

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. #79

Open
tan054 opened this issue Aug 10, 2023 · 3 comments

Comments

@tan054
Copy link

tan054 commented Aug 10, 2023

I am trying to install dreamerv3 via pip

getting the following error:
Collecting dreamerv3
Using cached dreamerv3-1.5.0.tar.gz (83 kB)
Preparing metadata (setup.py) ... done
Collecting cloudpickle (from dreamerv3)
Using cached cloudpickle-2.2.1-py3-none-any.whl (25 kB)
Collecting crafter (from dreamerv3)
Using cached crafter-1.8.1.tar.gz (105 kB)
Preparing metadata (setup.py) ... done
Collecting gym==0.19.0 (from dreamerv3)
Using cached gym-0.19.0.tar.gz (1.6 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.**

@marianophielipp
Copy link

Check this (openai/gym#3202) Many options solved the problem.

@masonhargrave
Copy link

masonhargrave commented Aug 23, 2023

requirements.py should have wheel==0.38.4 added to it in order to fix this if we must stick with gym 0.19.0 (which is to my understanding not maintained by OpenAI anymore)

@catid
Copy link

catid commented Jan 7, 2024

This fixed it for me: pip install setuptools==66 wheel==0.38.4
And pip install -U "jax[cuda12_pip]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
Then the instructions in the README work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants