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

Unable to install via pip #833

Open
tjuwhy opened this issue Nov 2, 2024 · 2 comments
Open

Unable to install via pip #833

tjuwhy opened this issue Nov 2, 2024 · 2 comments
Labels
Question Further information is requested

Comments

@tjuwhy
Copy link

tjuwhy commented Nov 2, 2024

❓ Questions and Help

pip install -U compiler_gym
Collecting compiler_gym
Using cached compiler_gym-0.2.5-py3-none-manylinux2014_x86_64.whl.metadata (11 kB)
Collecting absl-py>=0.10.0 (from compiler_gym)
Using cached absl_py-2.1.0-py3-none-any.whl.metadata (2.3 kB)
Collecting deprecated>=1.2.12 (from compiler_gym)
Using cached Deprecated-1.2.14-py2.py3-none-any.whl.metadata (5.4 kB)
Collecting docker>=4.0.0 (from compiler_gym)
Using cached docker-7.1.0-py3-none-any.whl.metadata (3.8 kB)
Collecting fasteners>=0.15 (from compiler_gym)
Using cached fasteners-0.19-py3-none-any.whl.metadata (4.9 kB)
Collecting grpcio<1.44.0,>=1.32.0 (from compiler_gym)
Using cached grpcio-1.43.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.0 kB)
Collecting gym<=0.21,>=0.18.0 (from compiler_gym)
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
╰─> [3 lines of output]
/common/home/users/h/haoyu.wang.2024/.conda/envs/compiler/lib/python3.10/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'tests_require'
warnings.warn(msg)
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.

@tjuwhy tjuwhy added the Question Further information is requested label Nov 2, 2024
@amabilee
Copy link

amabilee commented Nov 5, 2024

This issue seems to be related to a recent change in setuptools that causes a conflict with the gym setup script.
A workaround for this issue is to downgrade setuptools to version 50.0.0.

This looks like it may be #817.

@alex-60-commit
Copy link

Hello,
I have the same issue. The workaround doesn't work on my side because I get this following error :

error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
ERROR: Can not execute setup.py since setuptools is not available in the build environment.
[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.

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

No branches or pull requests

3 participants