Open Rafael222mg opened 1 year ago
Do any of the solutions discussed in https://github.com/openai/gym/issues/3202 solve the issue?
Do none of the solutions discussed in #3202 solve the issue?
No, absolutely none of them. I am stuck at the moment
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
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 "wheel<0.40.0"
solves it - as a workaround. However, with further dependencies upgrading to packaging, the issue will recursively be re-introduced with a chain of "outdated" packages.
@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. Sadly this is an OpenAI issue, they control PyPI, and we the volunteers have no access to make new uploads. I will see if there is anything we can do
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/
updating to gym ==0.22.0, the issue is addressed.
Contributor Great! Following your suggestion. I updating to gym ==0.22.0, the issue is addressed.
Downgrade both wheel and setuptools with pip install wheel==0.38.4 setuptools==66.0.0
Sorry, I think this problem is still open:
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 GitHubhttps://github.com/openai/gym/issues/3211#issuecomment-2453414572, or unsubscribehttps://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