deep-rl-class icon indicating copy to clipboard operation
deep-rl-class copied to clipboard

Update hands-on.mdx

Open GTimothee opened this issue 8 months ago • 0 comments

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.

GTimothee avatar Mar 23 '25 14:03 GTimothee