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

[Creating Dataset Version is not working] - Permission denied #181

Open
ai-nikolai opened this issue Nov 10, 2024 · 2 comments
Open

[Creating Dataset Version is not working] - Permission denied #181

ai-nikolai opened this issue Nov 10, 2024 · 2 comments
Assignees

Comments

@ai-nikolai
Copy link

@rosbo Hi Kagglehub team,

Problem:
Just a quick note. I am trying to upload stuff using the kagglehub.upload_dataset() function. Uploading once works very well and everything goes smoothly. Uploading a second time (using the same code), throws a permission denied error.

Specifically:

requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://www.kaggle.com/api/v1/datasets/create/version/...

It seems like this function does not work:

def _create_dataset_version(


Expected outcome:
Running kagglehub.upload_dataset() twice would create a new version of the dataset, instead of throwing an error.

Let me know what the issue might be and how to remedy it.

@rosbo
Copy link
Contributor

rosbo commented Nov 13, 2024

Hi @ai-nikolai,

I am having trouble reproducing the issue. I can create multiple versions of the same dataset with kagglehub.dataset_upload(...): https://www.kaggle.com/code/rosebv/kagglehub-issues-181-dataset-version-upload-fail/notebook?scriptVersionId=207131830

Which version of kagglehub are you using? You can run:

import kagglehub

print(kagglehub.__version__)

Thank you

@rosbo
Copy link
Contributor

rosbo commented Nov 14, 2024

Finally, I have been able to reproduce.

You must wait until the first version finish processing (happens async after kagglehub.dataset_upload(...) returns) before you can upload a second version. For subsequent versions, you can have multiple request in parallel.

@rosbo rosbo self-assigned this Dec 12, 2024
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