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' #143

Open
ethan-alderson opened this issue May 19, 2023 · 5 comments
Open

Error in gym setup command: 'extras_require' #143

ethan-alderson opened this issue May 19, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@ethan-alderson
Copy link

image

Running into this error when attempting pip install deepbots, I have upgraded pip, installed gym as a dependency, and am running Python 3.11.3. Am running into the same issue on other machines when attempting the same install.

@KelvinYang0320
Copy link
Member

@ethan-alderson Hi, thank you for opening an issue.
Could you share your setuptools version with us and try pip install setuptools==65.5.0?
openai/gym#3176 (comment)

@tsampazk
Copy link
Member

Hey @ethan-alderson, did you have any luck with this issue?

@ethan-alderson
Copy link
Author

Yep, had some clashing dependencies, worked in a fresh virtual environment!

@tsampazk tsampazk added the bug Something isn't working label Jun 3, 2023
@tsampazk tsampazk pinned this issue Jun 3, 2023
@tsampazk
Copy link
Member

tsampazk commented Jun 3, 2023

I'm reopening this issue and will keep it open as it is recurring and other users might face it until the gym setup stuff is ironed out. Also pinned it.

@tsampazk tsampazk reopened this Jun 3, 2023
@tsampazk
Copy link
Member

tsampazk commented Jun 3, 2023

@ethan-alderson Hi, thank you for opening an issue. Could you share your setuptools version with us and try pip install setuptools==65.5.0? openai/gym#3176 (comment)

For other users that run into this issue, i investigated further, and apart from setup tools version, pip version also interferes with gym installation.

If pip install setuptools==65.5.0 itself doesn't fix it, try:

pip install setuptools==65.5.0 pip==21

This modifies the user's environment unfortunately. We will investigate (#147) into changing our gym dependency to gymnasium (see also this).

tsampazk added a commit that referenced this issue Jun 3, 2023
Removed pip from build-system, shouldn't work either way

Trying forcing pip version

Trying forcing pip version

Removing install_requires

Problem seems to originate from pip version

Trying setuptools in install_requires again

Testing installing setuptools before requirements

Removed setuptools from setup.py, doesn't seem to make much sense

Testing forcing setuptools version in pyproject.toml

Testing setuptools in install_requires

Testing setup_requires in setup.py

Run tests
tsampazk added a commit that referenced this issue Jun 3, 2023
Removed pip from build-system, shouldn't work either way

Trying forcing pip version

Trying forcing pip version

Removing install_requires

Problem seems to originate from pip version

Trying setuptools in install_requires again

Testing installing setuptools before requirements

Removed setuptools from setup.py, doesn't seem to make much sense

Testing forcing setuptools version in pyproject.toml

Testing setuptools in install_requires

Testing setup_requires in setup.py

Run tests
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

No branches or pull requests

3 participants