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

'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers. #10286

Closed
Dong237 opened this issue May 3, 2023 · 4 comments
Labels
Support Support question

Comments

@Dong237
Copy link

Dong237 commented May 3, 2023

Details

Dear all, I got the following error telling me about 'extras_require', which I don't understand what went wrong exactly. The building process was successful last week and nothing has been changed since then. Thanks a lot for any advice!

Collecting gym==0.21.0 (from rl4lms==0.2.2)
  Downloading gym-0.21.0.tar.gz (1.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 260.5 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status '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.
@stsewd
Copy link
Member

stsewd commented May 3, 2023

Hi, one of your dependencies isn't compatible with the latest version of setuptools (we are installing the latest version by default now). You can fix your build by explicitly installing a compatible version of setuptools, from openai/gym#3176 (comment), looks like that version is 65.5.0.

You can do this by changing your config file https://github.com/Dong237/RL4LMs/blob/f907aee6610963c05ec450c3e3b892f1277ac66f/.readthedocs.yaml#L15-L19 to:

python:
  install:
    - requirements: setuptools.txt
    - method: pip
      path: .
    - requirements: requirements.txt

Wher setuptools.txt has setuptools==65.5.0

@Dong237
Copy link
Author

Dong237 commented May 4, 2023

Problem now solved, thank you so much!!

@Dong237 Dong237 closed this as completed May 4, 2023
@FranciscoRSilva
Copy link

Problem now solved, thank you so much!!

How ?

@Dong237
Copy link
Author

Dong237 commented May 11, 2023

Problem now solved, thank you so much!!

How ?

Hi I just added setuptools.txt to the root directory containing setuptools==65.5.0, and also add it to .readthedocs.yaml file as suggested above. Then it worked.

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

No branches or pull requests

3 participants