CLI `login` command incorrectly triggers interactive prompt
See original GitHub issue- Weights and Biases version: 0.9.3
- Python version: 3.6.9, 3.7.8
- Operating System: Ubuntu 18.04, macOS 10.15.3
Description
From a fresh install, attempting to log in via the command line using wandb login <valid API key>
should succeed without requiring interactive input. Instead, it prompts for an API key interactively (see below).
The cause can be traced back to the addition of public_api = PublicApi()
on line 210 of wandb/cli.py. To my understanding, this causes the __init__()
method of the PublicApi
class (which triggers the interactive prompt if API key is unknown) to be called prior to the execution of any WandB CLI command. This behavior is undesirable, particularly because it renders wandb login <key>
useless except when a user is already logged in.
What I Did
$ wandb login <my-api-key-here>
wandb: (1) Create a W&B account
wandb: (2) Use an existing W&B account
wandb: (3) Don't visualize my results
wandb: Enter your choice:
For now, working around this by downgrading to version 0.9.2.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
CLI login command incorrectly triggers interactive prompt #1156
From a fresh install, attempting to log in via the command line using wandb login <valid API key> should succeed without requiring interactive ......
Read more >Troubleshooting AWS CLI errors - AWS Command Line Interface
Various errors can occur if your command is formatted incorrectly or you are using an earlier version from before the feature was released....
Read more >How to change Firebase user login identity from command ...
The easiest way to handle this is to logout User-Alice and the login User-Bob. ... CLI (9.9.0) there was support for multiple accounts...
Read more >Enabling interactivity with Slash Commands - Slack API
Slash Commands allow users to invoke your app by typing a string into the message composer box. A submitted Slash Command will cause...
Read more >Troubleshoot .NET tool usage issues - Microsoft Learn
This article describes the common root causes and some possible ... are installed on your machine using one of the following commands:.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Issue-Label Bot is automatically applying the label
bug
to this issue, with a confidence of 0.95. Please mark this comment with 👍 or 👎 to give our bot feedback!Links: app homepage, dashboard and code for this bot.
@ecthompson99 setting anonymous=‘must’ worked for me. Was not able to claim the runs from my wandb account after though.