api_key not configured OSX Big Sur - PyCharm
See original GitHub issueDescribe the bug
Unable to run wandb.init()
from PyCharm - macOS Big Sur
To Reproduce [in PyCharm**]
import wandb
wandb.init(name='name', project='project')
OUT:
Traceback (most recent call last):
File "/Users/emadboctor/Desktop/DeepRL-TensorFlow2/DQN/DQN_Discrete.py", line 23, in <module>
wandb.init(name='name', project='project')
File "/usr/local/lib/python3.8/site-packages/wandb/sdk/wandb_init.py", line 572, in init
wi.setup(kwargs)
File "/usr/local/lib/python3.8/site-packages/wandb/sdk/wandb_init.py", line 138, in setup
wandb_login._login(anonymous=anonymous, force=force, _disable_warning=True)
File "/usr/local/lib/python3.8/site-packages/wandb/sdk/wandb_login.py", line 202, in _login
wlogin.prompt_api_key()
File "/usr/local/lib/python3.8/site-packages/wandb/sdk/wandb_login.py", line 144, in prompt_api_key
raise UsageError("api_key not configured (no-tty). Run wandb login")
wandb.errors.error.UsageError: api_key not configured (no-tty). Run wandb login
It runs fine from the terminal (same interpreter python 3.8.6)
>>> import wandb
>>> wandb.init(name='name, project='project')
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:
Expected behavior
Same behavior as the terminal.
Screenshots If applicable, add screenshots to help explain your problem.
Operating System
- OS: macOS 11.0.1 (Big Sur)
- Version [e.g. 22]
Additional context wandb v0.10.12
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
api_key not configured OSX Big Sur - PyCharm · Issue #1596
Describe the bug Unable to run wandb.init() from PyCharm - macOS Big Sur To Reproduce [in PyCharm**] import wandb wandb.init(name='name', ...
Read more >Problems running Python programs on PyCharm on new Mac ...
I've installed PyCharm on my Mac Book Air (m1/apple silicon, latest build of Big Sur) PyCharm (Community Edition 2021.2, Apple Silicon...
Read more >Cannot set up SSH Interpreter on Mac OS X Big Sur to ...
In PyCharm Terminal window I am able to "ssh pi@192.168.1.111" without any problem. Attach a code sample as text, a screenshot or screencast...
Read more >Unable to open pycharm-professional-2020.2.3.dmg on mac ...
Had to go back to 2019.3 to install pycharm and that version works. Clicking on the pycharm icon has no effect. Can you...
Read more >Mac OSX BigSur PyCharm run program on docker-compose ...
I follow the official tutorial to set up the docker-compose interpreter, but it not worked. The output of Solver.py not display on...
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
Thanks! Today I encountered the same problem,and this way solved it!!
@ariG23498 This workaround of manually logging in from the terminal worked for me. This got a little frustrating after a while as you end up having to do it quite often. I found a better fix which involved using the API to explicitly login at the start of my script. Some context: this issue started affecting my runs around Dec and I just got it sorted with this solution today. Not sure if it is linked to the Big Sur/Pycharm reason in this issue but this matches my OS and ENV directly . Hope this helps.