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.

‘wandb_api_key’ not found[Q]

See original GitHub issue

Hello, I’m running this project: https://github.com/ws-choi/Conditioned-Source-Separation-LaSAFT which need to use HYDRA training and wandb key. I followed the instructions, registered a wandb account and got an API key. I copied the API key to the terminal as required. However when I take training, it report this error:

Global seed set to 2020
wandb: Currently logged in as: kinologic. Use `wandb login --relogin` to force relogin
wandb: Tracking run with wandb version 0.13.5
wandb: Run data is saved locally in ./wandb/run-20221110_150236-293r0nox
wandb: Run `wandb offline` to turn off syncing.
wandb: Syncing run grateful-bee-6
wandb: ⭐️ View project at https://wandb.ai/kinologic/lasaft
wandb: 🚀 View run at https://wandb.ai/kinologic/lasaft/runs/293r0nox
Error executing job with overrides: ['dataset.musdb_root=dev/musdb/musdb18hq/']
Traceback (most recent call last):
  File "train.py", line 24, in hydra_entry
    main(cfg)
  File "train.py", line 19, in main
    trainer.train(cfg)
  File "/home/usrname/Conditioned-Source-Separation-LaSAFT/lasaft/source_separation/conditioned/scripts/trainer.py", line 45, in train
    wandb_login(key=cfg['wandb_api_key'])
omegaconf.errors.InterpolationResolutionError: KeyError raised while resolving interpolation: "Environment variable 'wandb_api_key' not found"
    full_key: wandb_api_key
    object_type=dict

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.
wandb: Waiting for W&B process to finish... (failed 1). Press Control-C to abort syncing.
wandb: Synced grateful-bee-6: https://wandb.ai/kinologic/lasaft/runs/293r0nox
wandb: Synced 6 W&B file(s), 0 media file(s), 0 artifact file(s) and 0 other file(s)
wandb: Find logs at: ./wandb/run-20221110_150236-293r0nox/logs

What should I do? Thank you.

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
Logicinocommented, Nov 17, 2022

Hi @Logicino just checking in here to see if the above resolved this issue? thanks!

Thank you! Sorry for my server’s broken these days and I finally tried it success today 😃 Thank you for your reply!

0reactions
exalate-issue-sync[bot]commented, Nov 17, 2022

WandB Internal User commented: Logicino commented:

Hi @Logicino just checking in here to see if the above resolved this issue? thanks!

Thank you! Sorry for my server’s broken these days and I finally tried it success today 😃 Thank you for your reply!

Read more comments on GitHub >

github_iconTop Results From Across the Web

[App] Unable to pass api key in cli #2878 - wandb ... - GitHub
No way to paste or even type anything at the command line.
Read more >
Anonymous Mode - Documentation - Weights & Biases - Wandb
If there's no account, we automatically create a new anonymous account and save that API key for the session. 2. Log results quickly:...
Read more >
Quickstart - Documentation - Weights & Biases - WandB
Try this short Google Colab to see Weights & Biases in action, no code installation ... You will find your API key here:...
Read more >
Weights & Biases - Documentation - WandB
Use W&B's lightweight, interoperable tools to quickly track experiments, version and iterate on datasets, evaluate model performance, reproduce models, ...
Read more >
General - Documentation - Weights & Biases - Wandb
When wandb.init() is called from your training script an API call is made to ... API key that has permissions to write to...
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