-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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
[Bug Report] again Gym==0.21 not installing anymore even with setuptools=65 #3211
Comments
Do any of the solutions discussed in #3202 solve the issue? |
No, absolutely none of them. |
Have you resolved this issue? |
Can confirm this issue now comes on-top to the setuptools originated problem with packaing, see #3202, and seems like wheel also requires correct versioning strings, now. Accordingly, in contrast to the issue author, downgrading to @pseudo-rnd-thoughts since I know how deeply you are involved into propelling RL into the broad community, I would like to give the feedback that this issue at hand is currently a show-stopper for amateur Pythoniasts. I still suggest to manually creating a post-release that fixes the issue and pushes to PyPI an updated v0.21.0. That will probably reduce the effort on both sides. |
@Pythoniasm Thanks for the update that makes sense. Edit: The person at OpenAI who was replying to our emails is no longer doing so. Furthermore, this is the cost of old, unmaintained software. We would recommend updating to gym >=0.21, we provide a migration guide - https://gymnasium.farama.org/content/migration-guide/ |
For "gym-v21", the installation is "gym>=0.21" however this allows gym==0.26 to be installed, failing the exact case. Additionally, we could look to add the same requirements as specified in openai/gym#3211
updating to gym ==0.22.0, the issue is addressed. |
|
Downgrade both wheel and setuptools with |
I have experienced this myself, again, seems it got re-introduced. Haven’t had the time to analyse, yet, though.
On Nov 3, 2024, at 13:42, denoiser-ml ***@***.***> wrote:
Sorry, I think this problem is still open:
image.png (view on web)<https://github.com/user-attachments/assets/3ff5809f-dcca-479e-89fe-b0c0807e9253>
—
Reply to this email directly, view it on GitHub<#3211 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AGHCHMIHWK7R2VXN7QIFK2LZ6YK3FAVCNFSM6AAAAABRCWMSKKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJTGQYTINJXGI>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Thanks @Pythoniasm , please let me know if you can dive into it! |
I tried to install gym 0.19.0 today and encountered this problem. At first I downgrade setuptools to 57.5.0, still failed to install. Then I downgrade wheels from 0.44.0 to 0.37.0 and finally managed to install. Here's my environment list, hopefully it will help someone with similar questions:
Notably, gym 0.22.0 can be smoothly installed without any trouble. Hope this can help those who needs to install old version of gym. |
Describe the bug
Fail to install gym==0.21 (necessary for installing stable-baselines3 )
error:
Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Collecting gym==0.21
Using cached gym-0.21.0.tar.gz (1.5 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.18.0 in /usr/local/lib/python3.10/dist-packages (from gym==0.21) (1.24.3)
Requirement already satisfied: cloudpickle>=1.2.0 in /usr/local/lib/python3.10/dist-packages (from gym==0.21) (2.2.1)
Building wheels for collected packages: gym
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Building wheel for gym (setup.py) ... error
ERROR: Failed building wheel for gym
Running setup.py clean for gym
Failed to build gym
ERROR: Could not build wheels for gym, which is required to install pyproject.toml-based projects
The text was updated successfully, but these errors were encountered: