forked from facebookresearch/minihack
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
bugSomething isn't workingSomething isn't working
Description
🐛 Bug
inside minihack/scripts/play_gui.py
which can be run via python -m minihack.scripts.play_gui
has the following code snippet inside the key_handler
try:
action = env.actions.index(ch)
step(action)
but the env is wrapped by gymnasium with PassiveEnvChecker
which doesn't expose the instance attribute actions.
I don't know why it isn't exposed, but this is the solution that i used to fix this:
try:
action = env.unwrapped.actions.index(ch)
step(action)
To Reproduce
Steps to reproduce the behavior:
- pip install minihack
- python -m minihack.scripts.play_gui
The error message:
lay_gui.py", line 54, in key_handler
action = env.actions.index(ch)
AttributeError: 'PassiveEnvChecker' object has no attribute 'actions'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working