huggingface / huggingface/deep-rl-class

[HANDS-ON BUG]

Open
#614 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
MDX
Stars
5k
Forks
811
PR merge metrics
No merged PRs in 30d

Description

# Describe the bug

A clear and concise description of what the bug is.
**Please share your notebook link so that we can reproduce the error**
https://colab.research.google.com/github/huggingface/deep-rl-class/blob/main/notebooks/unit1/unit1.ipynb#scrollTo=OwEcFHe9RRZW

/usr/local/lib/python3.11/dist-packages/gymnasium/envs/registration.py:519: DeprecationWarning: WARN: The environment LunarLander-v2 is out of date. You should consider upgrading to version `v3`.
logger.deprecation(

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

DeprecatedEnv Traceback (most recent call last)

[](https://localhost:8080/#) in ()
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)
431
432 if latest_spec is not None and version < latest_spec.version:
--> 433 raise error.DeprecatedEnv(
434 f"Environment version v{version} for `{get_env_id(ns, name, None)}` is deprecated. "
435 f"Please use `{latest_spec.id}` instead."

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

# Material

- Did you use Google Colab? - yes

If not:
- Your Operating system (OS)
- Version of your OS

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.