Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not have permission to access the requested resource #243

Open
KeshavSingh29 opened this issue Aug 13, 2024 · 2 comments
Open

Do not have permission to access the requested resource #243

KeshavSingh29 opened this issue Aug 13, 2024 · 2 comments

Comments

@KeshavSingh29
Copy link

Hi,

Thanks for sharing such a great eval framework idea!
I am running into some trouble when i try to evaluation using
python3 scripts/run_eval.py -s

I always get the error as
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 404: Not Found)

Can you please guide ?

@KeshavSingh29
Copy link
Author

KeshavSingh29 commented Aug 14, 2024

It was apparently a issue with wandb. Fixed it.
For those who might come across this permission issue, here is the solution I figured out after spending 2 days digging into it.

The Issue

  • Mainly due to the entity flag -e. Wandb seems to have some issue identifying the user once you login and then pass the entity argument.

Solution

  • Make a minor tweak in upload_dataset.py file.
import wandb
from argparse import ArgumentParser

parser = ArgumentParser()
parser.add_argument("-e", "--entity", type=str, required=False) # set this to False
parser.add_argument("-p", "--project", type=str, required=True)

parser.add_argument("-n", "--dataset_name", type=str, required=True)
# choose from jaster, lctg

parser.add_argument("-d", "--dataset_folder", type=str, required=True)
parser.add_argument("-v", "--dataset_version", type=str, required=True)
args = parser.parse_args()

with wandb.init(project=args.project, job_type="upload_data") as run:
    dataset_artifact = wandb.Artifact( 
        name=args.dataset_name, # entity argument not needed 
        type="dataset",
        metadata={"version": args.dataset_version},
    )
    dataset_artifact.add_dir(args.dataset_folder, name=args.dataset_name)
    run.log_artifact(dataset_artifact)

Then upload your jaster dataset without the -e flag.

python3 scripts/data_uploader/upload_dataset.py -p <your wandb project> -d <pass of jaster dataset> -n jaster -v <version>

You will need to do it for run_eval.py as well. Remove the entity argument in wandb.init() function.

@olachinkei
Copy link
Collaborator

Thank you for your question.
Please specify wandb entity to your entity.
If you don't specify wandb entity, your default entity will be used, but I recommend you to use your entity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants