Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verbose flag in play_ scripts depends on inaccessible flag #286

Open
itwasabhi opened this issue Dec 16, 2024 · 0 comments
Open

Verbose flag in play_ scripts depends on inaccessible flag #286

itwasabhi opened this issue Dec 16, 2024 · 0 comments

Comments

@itwasabhi
Copy link

Trying to run a play script with --verbose as follows: python -m meltingpot.human_players.play_collaborative_cooking --verbose True --print_events True

This results in the following error:

  File "/dev/meltingpot/meltingpot/human_players/play_collaborative_cooking.py", line 65, in verbose_fn
    if env_timestep.observation[f'{lua_index}.{obs}']:
       ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
KeyError: '1.ADDED_INGREDIENT_TO_COOKING_POT'

From a quick look through the source code, it seems like susbtrates have a default _ENABLE_DEBUG_OBSERVATIONS = False flag that needs to be manually enabled before the CLI works as intended.

Happy to work on a patch if I can get a suggested fix from a maintainer. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant