Getting error while performing wandb.init()

I am trying to initiate wandb in my python script. I have set the WANDB API key as environment variable. it logins and throws W&B API permission denied error. And on wandb.init() I am getting another error. I am pasting both of them below.

import wandb
import os

os.environ["WANDB_API_KEY"] = config['WANDB_API_KEY']


wandb: Currently logged in as: asmita-kadam1 (tmna-trial-enterprise). Use `wandb login --relogin` to force relogin
wandb: ERROR Error while calling W&B API: permission denied (<Response [403]>)

wandb: ERROR It appears that you do not have permission to access the requested resource. Please reach out to the project owner to grant you access. If you have the correct permissions, verify that there are no issues with your networking setup.(Error 403: Forbidden)```

Do you know what might be issue .. all the things are correct as per my understanding

Hi @asmita-kadam ,

Thank you for writing in. The error seems like you are not directly initializing to the said entity, could you please try to specify it in your wandb.init()? like this:

Then in your terminal, please refresh your login to make sure that your API is tied in to the correct instance by doing this command:

  • rm ~/.netrc #deleting the netrc file [hit enter then login as follow:]
  • wandb login --relogin --cloud

Let us know if that helps. Thanks~

1 Like

Hi @asmita-kadam , since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.