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 when installing gym==0.21.0 from the setup.py #2443

Closed
luisfvc opened this issue Feb 15, 2023 · 9 comments
Closed

Error when installing gym==0.21.0 from the setup.py #2443

luisfvc opened this issue Feb 15, 2023 · 9 comments
Labels
bug Something isn't working

Comments

@luisfvc
Copy link

luisfvc commented Feb 15, 2023

Hello,
When trying to install the package d2l==1.0.0b0 I get the following error:

image

This doesn't happen when installing gym==0.22.0, for example.
Is it only me? By the way I am really having troubles with the d2l/torch.py module, some classes do not run smoothly.
Regards

@znacloud
Copy link

Same error occurred to me

@PicoJr
Copy link

PicoJr commented Mar 3, 2023

Hello, it seems to relate to this issue: openai/gym#3176

I managed to install d2l==1.0.0b0 by downgrading my setuptools version as described by this comment: openai/gym#3176 (comment)

@mqy
Copy link

mqy commented Mar 5, 2023

Hello, it seems to relate to this issue: openai/gym#3176

I managed to install d2l==1.0.0b0 by downgrading my setuptools version as described by this comment: openai/gym#3176 (comment)

pip install setuptools==66 works as well.

@znacloud
Copy link

znacloud commented Mar 6, 2023

Hello, it seems to relate to this issue: openai/gym#3176
I managed to install d2l==1.0.0b0 by downgrading my setuptools version as described by this comment: openai/gym#3176 (comment)

pip install setuptools==66 works as well.

Good, it works for me too. Thanks.

@IfyAnene7
Copy link

Hello, it seems to relate to this issue: openai/gym#3176
I managed to install d2l==1.0.0b0 by downgrading my setuptools version as described by this comment: openai/gym#3176 (comment)

pip install setuptools==66 works as well.

Works for me as well. Thanks!

@AnirudhDagar
Copy link
Member

AnirudhDagar commented May 15, 2023

Hello, it seems to relate to this issue: openai/gym#3176
I managed to install d2l==1.0.0b0 by downgrading my setuptools version as described by this comment: openai/gym#3176 (comment)

Indeed that's the case with gym==0.21.0 @rasoolfa would it be possible to update the RL chapter usage from gym -> gymnasium? A direct change is not possible, since the API has changed. It would be great if you can send a PR to use the new API with Frozenlake env.

Earlier we had gym==0.21.0 as a dependency to d2l. I've taken gym out of the d2l requirements since it was affecting all the notebooks in colab. If someone needs to run d2l RL chapter notebooks in colab, then they'd have to downgrade setuptools as specified in the comments above and manually install gym. d2l library won't automatically install gym==0.21.0.

xref similar issues: #2474 #2489

cc @astonzhang

@AnirudhDagar AnirudhDagar added the bug Something isn't working label May 15, 2023
@rasoolfa
Copy link
Contributor

new gym has indeed breaking backward compatibility, I have to double check that too.
yes, will do it by end of the week.

@AnirudhDagar
Copy link
Member

Hey @rasoolfa, any updates on the use of gymnasium? We plan a release soon with the latest versions of all the frameworks/libraries. It would be great if we could also update the two-year-old pinned version of gym we are currently using.

@AnirudhDagar
Copy link
Member

This should be fixed in the master and will reflect in the next release. Closing now!

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

7 participants