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,

wandb.init(project="my_project")

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/wandb_init.py", line 800, in init
    wi.setup(kwargs)
  File "/opt/miniconda3/envs/abcnet/lib/python3.7/site-packages/wandb/sdk/wandb_init.py", 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/wandb_login.py", line 268, in _login
    wlogin.prompt_api_key()
  File "/opt/miniconda3/envs/abcnet/lib/python3.7/site-packages/wandb/sdk/wandb_login.py", line 196, in prompt_api_key
    key, status = self._prompt_api_key()
  File "/opt/miniconda3/envs/abcnet/lib/python3.7/site-packages/wandb/sdk/wandb_login.py", 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/apikey.py", 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/apikey.py", 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/internal_api.py", 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/settings.py", 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/settings.py", 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

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?