question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot download competition data but can list it

See original GitHub issue

Hi, When I tried to download the dataset of a competition, it shows an error of {“code”:404,“message”:“NotFound”}. But I can use the command to list the dataset.

Thanks for any help!

`kaggle competitions files -c two-sigma-financial-modeling name size creationDate


train.h5.zip 553MB None

competitions download -c two-sigma-financial-modeling Traceback (most recent call last): File “c:\users\flios\anaconda3\lib\runpy.py”, line 193, in _run_module_as_main “main”, mod_spec) File “c:\users\flios\anaconda3\lib\runpy.py”, line 85, in run_code exec(code, run_globals) File "C:\Users\Flios\Anaconda3\Scripts\kaggle.exe_main.py", line 9, in <module> File “c:\users\flios\anaconda3\lib\site-packages\kaggle\cli.py”, line 18, in main out = args.func(**command_args) File “c:\users\flios\anaconda3\lib\site-packages\kaggle\api\kaggle_api_extended.py”, line 246, in competitionDownloadCli self.competitionDownloadFiles(competition, path, force, quiet) File “c:\users\flios\anaconda3\lib\site-packages\kaggle\api\kaggle_api_extended.py”, line 233, in competitionDownloadFiles self.competitionDownloadFile(competition, file.ref, path, force, quiet) File “c:\users\flios\anaconda3\lib\site-packages\kaggle\api\kaggle_api_extended.py”, line 222, in competitionDownloadFile response = self.process_response(self.competitions_data_download_file_with_http_info(id = competition, file_name = file, _preload_content = False)) File “c:\users\flios\anaconda3\lib\site-packages\kaggle\api\kaggle_api.py”, line 131, in competitions_data_download_file_with_http_info collection_formats=collection_formats) File “c:\users\flios\anaconda3\lib\site-packages\kaggle\api_client.py”, line 318, in call_api _preload_content, _request_timeout) File “c:\users\flios\anaconda3\lib\site-packages\kaggle\api_client.py”, line 149, in __call_api _request_timeout=_request_timeout) File “c:\users\flios\anaconda3\lib\site-packages\kaggle\api_client.py”, line 339, in request headers=headers) File “c:\users\flios\anaconda3\lib\site-packages\kaggle\rest.py”, line 235, in GET query_params=query_params) File “c:\users\flios\anaconda3\lib\site-packages\kaggle\rest.py”, line 225, in request raise ApiException(http_resp=r) kaggle.rest.ApiException: (404) Reason: Not Found HTTP response headers: HTTPHeaderDict({‘Cache-Control’: ‘private’, ‘Content-Length’: ‘33’, ‘Content-Type’: ‘application/json; charset=utf-8’, ‘Set-Cookie’: ‘TempData=.kXVFW1OTsyP0rMDHYMCVmOdw81b2Zu4hSp3Jd8BxnHAY7B/wHjgGkA6y92Y8fdXVL4qPTIJH5qft4eTEOx7+wvUo0bZUMYkCrF78EksmbQM0K73j2wRXx/A87lU5S8Wq9/sxwMhvjI0Hfkmmyaed54xtq5kCUBeppKVie5AZTAUbGayNZjnS5eWmIvTwIsrsXeB9Wu+2ScS5+S1PNlsGZ9uMzCs=; path=/; secure; HttpOnly, ARRAffinity=09c2beb4c9502b4b21d5170f783270ae843e6395502382744e0942964888b1c0;Path=/;HttpOnly;Domain=www.kaggle.com’, ‘X-Kaggle-MillisecondsElapsed’: ‘95’, ‘X-Kaggle-RequestId’: ‘8f9df8b37ecc25809633f9f6361bb9ba’, ‘X-Kaggle-ApiVersion’: ‘1.1.0’, ‘X-Frame-Options’: ‘SAMEORIGIN’, ‘Date’: ‘Wed, 21 Mar 2018 17:18:40 GMT’}) HTTP response body: b’{“code”:404,“message”:“NotFound”}'`

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11

github_iconTop GitHub Comments

10reactions
yashrj73commented, May 19, 2018

You have accept the rules and conditions of the competitions first before downloading.

1reaction
tingli81commented, Jun 4, 2018

Hi, so is this data no longer available? The competition is over but I would still like to see the data.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Help - can't download data - Kaggle
I can't download the data from a competition that I'm a member of, that has not yet closed. ... It has kaggle underlined...
Read more >
How to Search and Download Data using Kaggle API?
To use Kaggle resources and participate in Kaggle competitions you need to log in to the Kaggle website and search correspondingly. To download...
Read more >
Permission denied while downloading dataset from Kaggle API
I am using Google cloud services and I want ...
Read more >
How to Download a Kaggle competition Dataset in Crestle
Try doing a pip install kaggle-cli --upgrade and see if it resolves the issue. Also, see similar issues here and here. Maybe these...
Read more >
How to Download a Dataset from Kaggle - YouTube
Your browser can't play this video. ... This video shows how to utilize the Kaggle API to download a Kaggle Dataset. … Show...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found