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

Cannot create a private dataset #515

Open
DurojaiyeAbisoye opened this issue Nov 7, 2023 · 0 comments
Open

Cannot create a private dataset #515

DurojaiyeAbisoye opened this issue Nov 7, 2023 · 0 comments

Comments

@DurojaiyeAbisoye
Copy link

I'm trying to create a private dataset using the kaggle api. The json file if as follows:

meta = dict(
    id="bisoye/cgiar-classification-challenge",
    title="cgiar-classification-challenge",
    licenses=[dict(name="CC0-1.0")],
    isPrivate = True
)

The error message is as follows:

Starting upload for file images.zip
Traceback (most recent call last):
  File "/opt/conda/bin/kaggle", line 8, in <module>
    sys.exit(main())
  File "/opt/conda/lib/python3.7/site-packages/kaggle/cli.py", line 67, in main
    out = args.func(**command_args)
  File "/opt/conda/lib/python3.7/site-packages/kaggle/api/kaggle_api_extended.py", line 1556, in dataset_create_new_cli
    dir_mode)
  File "/opt/conda/lib/python3.7/site-packages/kaggle/api/kaggle_api_extended.py", line 1532, in dataset_create_new
    self.upload_files(request, resources, folder, quiet, dir_mode)
  File "/opt/conda/lib/python3.7/site-packages/kaggle/api/kaggle_api_extended.py", line 2374, in upload_files
    request, resources)
  File "/opt/conda/lib/python3.7/site-packages/kaggle/api/kaggle_api_extended.py", line 2416, in _upload_file
    token = self.dataset_upload_file(full_path, quiet)
  File "/opt/conda/lib/python3.7/site-packages/kaggle/api/kaggle_api_extended.py", line 1311, in dataset_upload_file
    success = self.upload_complete(path, result.createUrl, quiet)
AttributeError: 'FileUploadInfo' object has no attribute 'createUrl'
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

1 participant