huggingface / huggingface/deep-rl-class
[HANDS-ON BUG] LunarLander-v2 is deprecated and needs to be changed to LunarLander-v3
- Dominant language
- MDX
- Stars
- 5k
- Forks
- 811
- PR merge metrics
- No merged PRs in 30d
Description
## 🐛 Describe the Bug
The `LunarLander-v2` environment is no longer available as expected. The API has been updated and the environment version has been **incremented to `LunarLander-v3`**, so calling:
```python
env = gym.make("LunarLander-v2")
```
results in an error because `v2` has been deprecated in favor of `v3`. This change was made upstream to fix environment determinism and wind generation behavior.([[gymnasium.farama.org](https://gymnasium.farama.org/gymnasium_release_notes/index.html?utm_source=chatgpt.com)][1])
```python
# v2 deprecated / fails now
env = gym.make("LunarLander-v3")
```
---
## 📸 Screenshot
*(Include a screenshot here of the error you’re seeing — e.g., VersionNotFound or similar.)*
---
## 📌 Material
* **Did you use Google Colab?**
*Yes *
---
### 💡 Notes
* The environment version change was introduced in recent `gymnasium` and related ecosystem updates — the `v2` environments were updated to `v3` to address determinism and randomness issues.
[gymnasium.farama.org](https://gymnasium.farama.org/gymnasium_release_notes/index.html)
---
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.