Running wandb.init() locally causes permission error

Hello, wandb newbie here. I’m trying to run my first local wandb project locally on a work machine (macOS) where I have admin status. Unfortunately when I run,


I get the following permission error. Thanks in advance for any helpful feedback!

wandb: You can find your API key in your browser here: http://localhost:8080/authorize
Traceback (most recent call last):
  File "/opt/miniconda3/envs/abcnet/lib/python3.7/site-packages/wandb/sdk/", line 800, in init
  File "/opt/miniconda3/envs/abcnet/lib/python3.7/site-packages/wandb/sdk/", line 167, in setup
    wandb_login._login(anonymous=anonymous, force=force, _disable_warning=True)
  File "/opt/miniconda3/envs/abcnet/lib/python3.7/site-packages/wandb/sdk/", line 268, in _login
  File "/opt/miniconda3/envs/abcnet/lib/python3.7/site-packages/wandb/sdk/", line 196, in prompt_api_key
    key, status = self._prompt_api_key()
  File "/opt/miniconda3/envs/abcnet/lib/python3.7/site-packages/wandb/sdk/", line 184, in _prompt_api_key
    no_create=self._settings.force if self._settings else None,
  File "/opt/miniconda3/envs/abcnet/lib/python3.7/site-packages/wandb/sdk/lib/", line 121, in prompt_api_key
    write_key(settings, key, api=api)
  File "/opt/miniconda3/envs/abcnet/lib/python3.7/site-packages/wandb/sdk/lib/", line 211, in write_key
    api.clear_setting("anonymous", globally=True, persist=True)
  File "/opt/miniconda3/envs/abcnet/lib/python3.7/site-packages/wandb/sdk/internal/", line 256, in clear_setting
    Settings.DEFAULT_SECTION, key, globally=globally, persist=persist
  File "/opt/miniconda3/envs/abcnet/lib/python3.7/site-packages/wandb/old/", line 69, in clear
    clear_setting(self._global_settings, Settings._global_path(), persist)
  File "/opt/miniconda3/envs/abcnet/lib/python3.7/site-packages/wandb/old/", line 65, in clear_setting
    with open(settings_path, "w+") as f:
PermissionError: [Errno 13] Permission denied: '/Users/andrew/.config/wandb/settings'
wandb: ERROR Abnormal program exit
1 Like

Hi Andrew, I’m sorry you’re having problems with this. Can you try making sure you’re logged in by running wandb login in your terminal.

Hi @andrew1, are you still having issues?

Thanks for the reply. When I go to check login I now can’t see my API and it says I need to contact sales team to obtain a free license (just did that)

wandb login

Go to localhost

Get the following screen.

Hi Andrew,

Have you gone through the steps successfully or are you hung up on something?