{
  "id": 209546,
  "title": "Why am I getting `submission not found` error?",
  "url": "/competitions/cassava-leaf-disease-classification/discussion/209546",
  "author_name": "",
  "post_date": "2021-01-07T21:21:07.012071700Z",
  "votes": null,
  "comment_count": 5,
  "views": 0,
  "content": "<p>I  am running the following script in the notebook, and I keep getting <code>submission not found</code>. Is there a reason why?</p>\n<pre><code>import pandas as pd\ndf = pd.read_csv('../input/cassava-leaf-disease-classification/sample_submission.csv')\ndf.to_csv(\"submission.csv\", index=False)\n</code></pre>",
  "messages": [
    {
      "id": "1143357",
      "postDate": "01/07/2021 21:21:07",
      "content": "<p>I  am running the following script in the notebook, and I keep getting <code>submission not found</code>. Is there a reason why?</p>\n<pre><code>import pandas as pd\ndf = pd.read_csv('../input/cassava-leaf-disease-classification/sample_submission.csv')\ndf.to_csv(\"submission.csv\", index=False)\n</code></pre>",
      "rawMarkdown": "I  am running the following script in the notebook, and I keep getting `submission not found`. Is there a reason why?\n\n```\nimport pandas as pd\ndf = pd.read_csv('../input/cassava-leaf-disease-classification/sample_submission.csv')\ndf.to_csv(\"submission.csv\", index=False)\n```",
      "votes": null
    },
    {
      "id": "1143371",
      "postDate": "01/07/2021 21:33:57",
      "content": "<p>I believe if i understood it correctly, you are writing only those files which are present in sample_submission.csv which is not the case in this competition. In sample_submission.csv, there is only 1 entry written where as while testing on their end, they are running on several images. Have you considered that?</p>",
      "rawMarkdown": "I believe if i understood it correctly, you are writing only those files which are present in sample_submission.csv which is not the case in this competition. In sample_submission.csv, there is only 1 entry written where as while testing on their end, they are running on several images. Have you considered that?",
      "votes": null
    },
    {
      "id": "1143378",
      "postDate": "01/07/2021 21:43:08",
      "content": "<p>ah I see, so the error is still \"submission not found\" if not all the test image label ids  are in the <code>submission.csv</code>? I am starting to think that this error is happening because <code>sample_submission.csv</code> is not available in their server so the notebook executing in the server is not generating the <code>submission.csv</code> file.</p>",
      "rawMarkdown": "ah I see, so the error is still \"submission not found\" if not all the test image label ids  are in the `submission.csv`? I am starting to think that this error is happening because `sample_submission.csv` is not available in their server so the notebook executing in the server is not generating the `submission.csv` file.",
      "votes": null
    },
    {
      "id": "1143381",
      "postDate": "01/07/2021 21:49:17",
      "content": "<p>That might be the case. You can fetch images through some other methods such as os.listdir(\"PathToTestDir\") etc.</p>",
      "rawMarkdown": "That might be the case. You can fetch images through some other methods such as os.listdir(\"PathToTestDir\") etc.",
      "votes": null
    },
    {
      "id": "1143390",
      "postDate": "01/07/2021 22:01:59",
      "content": "<p>Thanks <a href=\"https://www.kaggle.com/haashaatif\" target=\"_blank\">@haashaatif</a> !</p>",
      "rawMarkdown": "Thanks @haashaatif !",
      "votes": null
    },
    {
      "id": "1143879",
      "postDate": "01/08/2021 05:44:04",
      "content": "<p>In my first submission, I used the sample_submission to read test images. And it didn't generate any errors.<br>\nI followed this notebook - <a href=\"https://www.kaggle.com/artgor/cassava-disease-identification-with-lightning/notebook\" target=\"_blank\">Cassava disease identification with lightning</a>, here the author used the same approach.<br>\nI think the issue is something else.<br>\nAre you using only the code that you shared? May be one of the cells above is failing, because of which your csv generating code is not executing.</p>",
      "rawMarkdown": "In my first submission, I used the sample_submission to read test images. And it didn't generate any errors.\nI followed this notebook - [Cassava disease identification with lightning](https://www.kaggle.com/artgor/cassava-disease-identification-with-lightning/notebook), here the author used the same approach.\nI think the issue is something else.\nAre you using only the code that you shared? May be one of the cells above is failing, because of which your csv generating code is not executing.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1143371,
      "author_name": "haashaatif",
      "author_url": "",
      "post_date": "01/07/2021 21:33:57",
      "content": "<p>I believe if i understood it correctly, you are writing only those files which are present in sample_submission.csv which is not the case in this competition. In sample_submission.csv, there is only 1 entry written where as while testing on their end, they are running on several images. Have you considered that?</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1143378,
      "author_name": "issamlaradji",
      "author_url": "",
      "post_date": "01/07/2021 21:43:08",
      "content": "<p>ah I see, so the error is still \"submission not found\" if not all the test image label ids  are in the <code>submission.csv</code>? I am starting to think that this error is happening because <code>sample_submission.csv</code> is not available in their server so the notebook executing in the server is not generating the <code>submission.csv</code> file.</p>",
      "votes": null,
      "replies": [
        {
          "id": 1143381,
          "author_name": "haashaatif",
          "author_url": "",
          "post_date": "01/07/2021 21:49:17",
          "content": "<p>That might be the case. You can fetch images through some other methods such as os.listdir(\"PathToTestDir\") etc.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1143879,
          "author_name": "jabertuhin",
          "author_url": "",
          "post_date": "01/08/2021 05:44:04",
          "content": "<p>In my first submission, I used the sample_submission to read test images. And it didn't generate any errors.<br>\nI followed this notebook - <a href=\"https://www.kaggle.com/artgor/cassava-disease-identification-with-lightning/notebook\" target=\"_blank\">Cassava disease identification with lightning</a>, here the author used the same approach.<br>\nI think the issue is something else.<br>\nAre you using only the code that you shared? May be one of the cells above is failing, because of which your csv generating code is not executing.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1143390,
      "author_name": "issamlaradji",
      "author_url": "",
      "post_date": "01/07/2021 22:01:59",
      "content": "<p>Thanks <a href=\"https://www.kaggle.com/haashaatif\" target=\"_blank\">@haashaatif</a> !</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1143357": "I  am running the following script in the notebook, and I keep getting `submission not found`. Is there a reason why?\n\n```\nimport pandas as pd\ndf = pd.read_csv('../input/cassava-leaf-disease-classification/sample_submission.csv')\ndf.to_csv(\"submission.csv\", index=False)\n```",
    "1143371": "I believe if i understood it correctly, you are writing only those files which are present in sample_submission.csv which is not the case in this competition. In sample_submission.csv, there is only 1 entry written where as while testing on their end, they are running on several images. Have you considered that?",
    "1143378": "ah I see, so the error is still \"submission not found\" if not all the test image label ids  are in the `submission.csv`? I am starting to think that this error is happening because `sample_submission.csv` is not available in their server so the notebook executing in the server is not generating the `submission.csv` file.",
    "1143381": "That might be the case. You can fetch images through some other methods such as os.listdir(\"PathToTestDir\") etc.",
    "1143390": "Thanks @haashaatif !",
    "1143879": "In my first submission, I used the sample_submission to read test images. And it didn't generate any errors.\nI followed this notebook - [Cassava disease identification with lightning](https://www.kaggle.com/artgor/cassava-disease-identification-with-lightning/notebook), here the author used the same approach.\nI think the issue is something else.\nAre you using only the code that you shared? May be one of the cells above is failing, because of which your csv generating code is not executing."
  },
  "source": "meta"
}