Skip to content

Update hands-on.mdx #610

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update hands-on.mdx #610

wants to merge 1 commit into from

Conversation

GTimothee
Copy link

@GTimothee GTimothee commented Mar 23, 2025

Fixes this error:


---------------------------------------------------------------------------

DeprecatedEnv                             Traceback (most recent call last)

[<ipython-input-6-c09b717123d5>](https://localhost:8080/#) in <cell line: 0>()
      2 
      3 # First, we create our environment called LunarLander-v2
----> 4 env = gym.make("LunarLander-v2")
      5 
      6 # Then we reset this environment

2 frames

[/usr/local/lib/python3.11/dist-packages/gymnasium/envs/registration.py](https://localhost:8080/#) in _check_version_exists(ns, name, version)
    429 
    430     if latest_spec is not None and version < latest_spec.version:
--> 431         raise error.DeprecatedEnv(
    432             f"Environment version v{version} for `{get_env_id(ns, name, None)}` is deprecated. "
    433             f"Please use `{latest_spec.id}` instead."

DeprecatedEnv: Environment version v2 for `LunarLander` is deprecated. Please use `LunarLander-v3` instead.

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

Successfully merging this pull request may close these issues.

1 participant