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.

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:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
issue-label-bot[bot]commented, Jul 13, 2020

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.

0reactions
KhushalBcommented, Jul 27, 2021

@ecthompson99 setting anonymous=‘must’ worked for me. Was not able to claim the runs from my wandb account after though.

Read more comments on GitHub >

github_iconTop 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 >

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