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

[BUG]: "Key 'att_type' is not in struct" #179

Open
cool-RR opened this issue Apr 13, 2024 · 0 comments
Open

[BUG]: "Key 'att_type' is not in struct" #179

cool-RR opened this issue Apr 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@cool-RR
Copy link
Collaborator

cool-RR commented Apr 13, 2024

Description

$ python -m pax.experiment +experiment/ipd=mfos_v_ppo ++runner="marl" ++env
_type="meta" ++wandb.log=True
C:\Program Files\Python312\Lib\site-packages\hydra\_internal\hydra.py:119: UserWarning: Future Hydra versions will no longer change working directory at job runtime by default.
See https://hydra.cc/docs/1.2/upgrades/1.1_to_1.2/changes_to_job_working_dir/ for more information.
  ret = run_job(
Jax backend: cpu
[2024-04-13 19:29:51,580][root][INFO] - => Global setup ...
run name run-seed-0-pop-size-1000
wandb: Currently logged in as: coolrr (coolrr-team). Use `wandb login --relogin` to force relogin
wandb: Tracking run with wandb version 0.16.6
wandb: Run data is saved locally in C:\Users\Administrator\Documents\Python Projects\Third-party\pax\wandb\run-20240413_192955-wavcdin5
wandb: Run `wandb offline` to turn off syncing.
wandb: Syncing run run-seed-0-pop-size-1000
wandb:  View project at https://wandb.ai/coolrr-team/ipd
wandb:  View run at https://wandb.ai/coolrr-team/ipd/runs/wavcdin5
run id wavcdin5
[2024-04-13 19:29:58,305][root][INFO] - => Done in 6.725 s
[2024-04-13 19:29:58,305][root][INFO] -
[2024-04-13 19:29:58,305][root][INFO] - => Env setup ...
[2024-04-13 19:29:58,320][root][INFO] - Env Type: meta | Inner Episode Length: 100
[2024-04-13 19:29:58,320][root][INFO] - Outer Episode Length: 100
[2024-04-13 19:29:58,320][root][INFO] - => Done in 15.624 ms
[2024-04-13 19:29:58,320][root][INFO] -
[2024-04-13 19:29:58,320][root][INFO] - => Agent setup ...
[2024-04-13 19:29:58,320][root][INFO] - => Done in 0.000 us
[2024-04-13 19:29:58,320][root][INFO] -
Error executing job with overrides: ['+experiment/ipd=mfos_v_ppo', '++runner=marl', '++env_type=meta', '++wandb.log=True']
Traceback (most recent call last):
  File "C:\Users\Administrator\Documents\Python Projects\Third-party\pax\pax\experiment.py", line 867, in main
    agent_pair = agent_setup(args, env, env_params, logger)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\Documents\Python Projects\Third-party\pax\pax\experiment.py", line 723, in agent_setup
    agents.append(strategies[strategy](seeds[idx], pids[idx]))
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\Documents\Python Projects\Third-party\pax\pax\experiment.py", line 605, in get_mfos_agent
    ppo_agent = make_mfos_agent(
                ^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\Documents\Python Projects\Third-party\pax\pax\agents\mfos_ppo\ppo_gru.py", line 582, in make_mfos_agent
    if args.att_type=='att':
       ^^^^^^^^^^^^^
omegaconf.errors.ConfigAttributeError: Key 'att_type' is not in struct
    full_key: att_type
    object_type=dict. Did you mean: 'env_type'?

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.
wandb:  View run run-seed-0-pop-size-1000 at: https://wandb.ai/coolrr-team/ipd/runs/wavcdin5
wandb:  View project at: https://wandb.ai/coolrr-team/ipd
wandb: Synced 5 W&B file(s), 0 media file(s), 0 artifact file(s) and 0 other file(s)
wandb: Find logs at: .\wandb\run-20240413_192955-wavcdin5\logs

What pax version are you using?

6ae3d07

What jax/jaxlib version are you using?

0.4.26

Which accelerator(s) are you using?

CPU

Additional system info

Python 3.12, Windows 10

NVIDIA GPU info

No response

@cool-RR cool-RR added the bug Something isn't working label Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant