{
  "id": 454171,
  "title": "Error while downloading dataset with Kaggle CLI",
  "url": "/competitions/blood-vessel-segmentation/discussion/454171",
  "author_name": "Eugene",
  "post_date": "2023-11-09T08:42:01.363000",
  "votes": 2,
  "comment_count": 0,
  "views": 0,
  "content": "<p>I get the following error while downloading the dataset. Is there something wrong with the link?<br>\n<code>&gt; kaggle competitions download -c blood-vessel-segmentation</code></p>\n<pre><code>Traceback (most recent call last):\n  File , line ,  &lt;module&gt;\n    sys.exit(main())\n  File , line ,  main\n    out = args.func(**command_args)\n  File , line ,  competition_download_cli\n    self.competition_download_files(competition, path, force,\n  File , line ,  competition_download_files\n    url = response.retries.history[].redirect_location.split()[]\nIndexError:  index out of \n</code></pre>",
  "messages": [
    {
      "id": 2518372,
      "postDate": "2023-11-09T08:42:01.363Z",
      "content": "<p>I get the following error while downloading the dataset. Is there something wrong with the link?<br>\n<code>&gt; kaggle competitions download -c blood-vessel-segmentation</code></p>\n<pre><code>Traceback (most recent call last):\n  File , line ,  &lt;module&gt;\n    sys.exit(main())\n  File , line ,  main\n    out = args.func(**command_args)\n  File , line ,  competition_download_cli\n    self.competition_download_files(competition, path, force,\n  File , line ,  competition_download_files\n    url = response.retries.history[].redirect_location.split()[]\nIndexError:  index out of \n</code></pre>",
      "rawMarkdown": "I get the following error while downloading the dataset. Is there something wrong with the link?\n`> kaggle competitions download -c blood-vessel-segmentation`\n\n```python\nTraceback (most recent call last):\n  File \"/home/yuchunli/git/otx/venv/bin/kaggle\", line 8, in <module>\n    sys.exit(main())\n  File \"/home/yuchunli/git/otx/venv/lib/python3.10/site-packages/kaggle/cli.py\", line 70, in main\n    out = args.func(**command_args)\n  File \"/home/yuchunli/git/otx/venv/lib/python3.10/site-packages/kaggle/api/kaggle_api_extended.py\", line 997, in competition_download_cli\n    self.competition_download_files(competition, path, force,\n  File \"/home/yuchunli/git/otx/venv/lib/python3.10/site-packages/kaggle/api/kaggle_api_extended.py\", line 960, in competition_download_files\n    url = response.retries.history[0].redirect_location.split('?')[0]\nIndexError: tuple index out of range\n\n```",
      "votes": 2
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "2518372": "I get the following error while downloading the dataset. Is there something wrong with the link?\n`> kaggle competitions download -c blood-vessel-segmentation`\n\n```python\nTraceback (most recent call last):\n  File \"/home/yuchunli/git/otx/venv/bin/kaggle\", line 8, in <module>\n    sys.exit(main())\n  File \"/home/yuchunli/git/otx/venv/lib/python3.10/site-packages/kaggle/cli.py\", line 70, in main\n    out = args.func(**command_args)\n  File \"/home/yuchunli/git/otx/venv/lib/python3.10/site-packages/kaggle/api/kaggle_api_extended.py\", line 997, in competition_download_cli\n    self.competition_download_files(competition, path, force,\n  File \"/home/yuchunli/git/otx/venv/lib/python3.10/site-packages/kaggle/api/kaggle_api_extended.py\", line 960, in competition_download_files\n    url = response.retries.history[0].redirect_location.split('?')[0]\nIndexError: tuple index out of range\n\n```"
  }
}