Kaggle / kaggle-api

Official Kaggle API
Apache License 2.0
6.27k stars 1.1k forks source link

Dataset creation error: Path must be unique #416

Open Reasat opened 2 years ago

Reasat commented 2 years ago

Hi, I am trying to create a dataset but I ran into this error. kaggle datasets create -p molatTest2Stripped --dir-mode zip It uploads the files with success prompts but then outputs Dataset creation error: Path must be unique What does this mean? here's a sample dataset to produce this error. https://drive.google.com/file/d/1zW-ncPAJSEICbui5tlSKMp_EpkfVwt2h/view?usp=sharing

Philmod commented 1 year ago

Sorry for the very late answer, would it be possible for you to share the sample dataset again?

Mahmoud0Mohamed commented 1 year ago

I was getting this error when the folder was like this (I used Colab) : /content/Data ---->file1.csv ---->file2.csv ---->dataset-metadata.json etc....... and the Command was : !kaggle datasets create -p /content/Data/ But when I compressed all the files and made them into one file(files.zip) then the folder becomes like this : /content/Data ---->files.zip ---->dataset-metadata.json the files were uploaded successfully and the link of dataset appeared This is my attempt, maybe it will help you