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

[Question] ImportError: cannot import name 'rendering' from 'gym.envs.classic_control' #712

Closed
arshiarafiei opened this issue Sep 11, 2023 · 5 comments
Labels
question Further information is requested

Comments

@arshiarafiei
Copy link

Question

I have this error showing up.

"from gym.envs.classic_control import rendering
ImportError: cannot import name 'rendering' from 'gym.envs.classic_control'"

Is there something that I can fix this.

@arshiarafiei arshiarafiei added the question Further information is requested label Sep 11, 2023
@pseudo-rnd-thoughts pseudo-rnd-thoughts changed the title [Question] Question title [Question] ImportError: cannot import name 'rendering' from 'gym.envs.classic_control' Sep 12, 2023
@pseudo-rnd-thoughts
Copy link
Member

You appear to be using code with gym v0.21 I believe which is no longer supported.
What version of gym are you using?

@arshiarafiei
Copy link
Author

arshiarafiei commented Sep 15, 2023

You appear to be using code with gym v0.21 I believe which is no longer supported. What version of gym are you using?

it is 0.26.2.
Do you what can I use instead?

@pseudo-rnd-thoughts
Copy link
Member

I can't remember exactly but gym 0.18 or 0.21 should probably work

@arshiarafiei
Copy link
Author

I can't remember exactly but gym 0.18 or 0.21 should probably work

I could not install the 0.21 version, I have this error.

note: This error originates from a subprocess, and is likely not a problem with pip.
  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

@pseudo-rnd-thoughts
Copy link
Member

openai/gym#3202

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

2 participants