{
  "id": 215015,
  "title": "No such file or directory: '../input'",
  "url": "/competitions/vinbigdata-chest-xray-abnormalities-detection/discussion/215015",
  "author_name": "Đặng Duy Thanh",
  "post_date": "2021-01-28T10:53:47.207000",
  "votes": 2,
  "comment_count": 3,
  "views": 0,
  "content": "<p>Today, I often encounter this error. Does anyone know why?</p>\n<pre><code>import pandas as pd\nimport os\nprint(os.listdir(\"../input\"))\n</code></pre>\n<p>Output</p>\n<pre><code>---------------------------------------------------------------------------\nFileNotFoundError                         Traceback (most recent call last)\n&lt;ipython-input-21-06db6b63fb21&gt; in &lt;module&gt;\n      1 import pandas as pd\n      2 import os\n----&gt; 3 print(os.listdir(\"../input\"))\n\nFileNotFoundError: [Errno 2] No such file or directory: '../input'\n</code></pre>",
  "messages": [
    {
      "id": 1175671,
      "postDate": "2021-01-29T09:23:51.393Z",
      "content": "<p>replace it with /kaggle/input </p>",
      "rawMarkdown": "replace it with /kaggle/input ",
      "votes": 1
    },
    {
      "id": 1174546,
      "postDate": "2021-01-28T15:03:21.780Z",
      "content": "<p><a href=\"https://www.kaggle.com/duythanhng\" target=\"_blank\">@duythanhng</a> Hi! Can you check if the file path for the data that you have loaded matches with the parameter of listdir?<br>\nWhen you load a notebook in the right panel you can see the data sources and there is an option to copy the file path. If you use that file path, it works properly</p>",
      "rawMarkdown": "@duythanhng Hi! Can you check if the file path for the data that you have loaded matches with the parameter of listdir?\nWhen you load a notebook in the right panel you can see the data sources and there is an option to copy the file path. If you use that file path, it works properly",
      "votes": 1,
      "replies": [
        {
          "id": 1174581,
          "postDate": "2021-01-28T15:38:40.750Z",
          "content": "<p>I has found the cause of the problem. I used the <code>cd</code> command, that is why the path is not work. Thank you very much.</p>",
          "rawMarkdown": "I has found the cause of the problem. I used the `cd` command, that is why the path is not work. Thank you very much."
        }
      ]
    },
    {
      "id": 1174218,
      "postDate": "2021-01-28T10:53:47.207Z",
      "content": "<p>Today, I often encounter this error. Does anyone know why?</p>\n<pre><code>import pandas as pd\nimport os\nprint(os.listdir(\"../input\"))\n</code></pre>\n<p>Output</p>\n<pre><code>---------------------------------------------------------------------------\nFileNotFoundError                         Traceback (most recent call last)\n&lt;ipython-input-21-06db6b63fb21&gt; in &lt;module&gt;\n      1 import pandas as pd\n      2 import os\n----&gt; 3 print(os.listdir(\"../input\"))\n\nFileNotFoundError: [Errno 2] No such file or directory: '../input'\n</code></pre>",
      "rawMarkdown": "Today, I often encounter this error. Does anyone know why?\n\n```python\nimport pandas as pd\nimport os\nprint(os.listdir(\"../input\"))\n```\n\nOutput\n```\n---------------------------------------------------------------------------\nFileNotFoundError                         Traceback (most recent call last)\n<ipython-input-21-06db6b63fb21> in <module>\n      1 import pandas as pd\n      2 import os\n----> 3 print(os.listdir(\"../input\"))\n\nFileNotFoundError: [Errno 2] No such file or directory: '../input'\n```",
      "votes": 2
    }
  ],
  "comments": [
    {
      "id": 1175671,
      "author_name": "Manh Lab",
      "author_url": "",
      "post_date": "2021-01-29T09:23:51.393000",
      "content": "<p>replace it with /kaggle/input </p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1174546,
      "author_name": "Vedanth Baliga",
      "author_url": "",
      "post_date": "2021-01-28T15:03:21.780000",
      "content": "<p><a href=\"https://www.kaggle.com/duythanhng\" target=\"_blank\">@duythanhng</a> Hi! Can you check if the file path for the data that you have loaded matches with the parameter of listdir?<br>\nWhen you load a notebook in the right panel you can see the data sources and there is an option to copy the file path. If you use that file path, it works properly</p>",
      "votes": 1,
      "replies": [
        {
          "id": 1174581,
          "author_name": "Đặng Duy Thanh",
          "author_url": "",
          "post_date": "2021-01-28T15:38:40.750000",
          "content": "<p>I has found the cause of the problem. I used the <code>cd</code> command, that is why the path is not work. Thank you very much.</p>",
          "votes": 0,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1175671": "replace it with /kaggle/input ",
    "1174546": "@duythanhng Hi! Can you check if the file path for the data that you have loaded matches with the parameter of listdir?\nWhen you load a notebook in the right panel you can see the data sources and there is an option to copy the file path. If you use that file path, it works properly",
    "1174218": "Today, I often encounter this error. Does anyone know why?\n\n```python\nimport pandas as pd\nimport os\nprint(os.listdir(\"../input\"))\n```\n\nOutput\n```\n---------------------------------------------------------------------------\nFileNotFoundError                         Traceback (most recent call last)\n<ipython-input-21-06db6b63fb21> in <module>\n      1 import pandas as pd\n      2 import os\n----> 3 print(os.listdir(\"../input\"))\n\nFileNotFoundError: [Errno 2] No such file or directory: '../input'\n```"
  }
}