question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug Report] Getting error: gym.error.NameNotFound: Environment doesn't exist.

See original GitHub issue

Hi, I’m not sure if this is a bug or if I’m doing something wrong, but I’m trying to use this project with the gym interface. I’m getting the following error

gym.error.NameNotFound: Environment MiniWorld-CollectHealth doesn't exist.

Code example

import gym
import gym_miniworld

env = gym.make("MiniWorld-CollectHealth-v0")

System Info

  • miniworld installed from source
  • Running Manjaro (Linux)
  • Python v3.10.8

Additional context I did some logging, the environments get registered and are in the registry immediately afterwards. But then later, when calling gym.make, they are not in the registry anymore: 2022-12-07_17-32

I’ve tried the exact same workflow on a similar project, where it does work. So, not sure if this is a bug or what else to do here?

Issue Analytics

  • State:open
  • Created 9 months ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
freyavscommented, Dec 8, 2022

That solved most of the problems, thank you! I’m still seeing the ValueError: Unknown OpenGL API: None on my cluster, but I assume for pyglet to work the underlying OpenGL drivers etc. should be set up?

0reactions
BolunDai0216commented, Dec 8, 2022

Yes, I think OpenGL should be set up.

Read more comments on GitHub >

github_iconTop Results From Across the Web

gym.error.NameNotFound: Environment ... - GitHub
gym.error.NameNotFound: Environment environments:RandomWalkEnv doesn't exist.[Bug Report] Bug title #2824.
Read more >
Error in importing environment OpenAI Gym - Stack Overflow
AutoRom runs program which asks if you have license for ROMs and install ROMs in AutoROM/roms but I didn't have to move ROMs...
Read more >
gym-super-mario-bros - PyPI
An OpenAI Gym environment for Super Mario Bros. & Super Mario Bros. 2 (Lost Levels) on The Nintendo Entertainment System (NES) using the...
Read more >
Capture and read bug reports - Android Developers
A bug report contains device logs, stack traces, and other diagnostic information to help you find and fix bugs in your app.
Read more >
Need help with this error when trying to use openai gym for ...
The source code for openai gym including the environments is available at github. After clicking on the fork button, the repository is cloned ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found