{
  "id": 182144,
  "title": "Kernel Internet off submission",
  "url": "/competitions/rsna-str-pulmonary-embolism-detection/discussion/182144",
  "author_name": "Venturillo JE",
  "post_date": "2020-09-11T12:39:10.004000",
  "votes": 1,
  "comment_count": 3,
  "views": 0,
  "content": "<p>I just want to raise this problem.</p>\n<p>To read DICOM files (*.dcm) you would need to use pydicom. However, while reading the pixel_array, for whatever reason, using it would SOMETIMES lead to an error of: </p>\n<pre><code>RuntimeError: The following handlers are available to decode the pixel data however they are missing required dependencies: GDCM (req. GDCM)\n</code></pre>\n<p>And to fix this error, you would need to download/update the GDCM module via conda:</p>\n<pre><code>!conda install -c conda-forge gdcm -y\n</code></pre>\n<p>In other words, you would be needing internet connection for your kernel. Can there be any loophole for this? Any fix?</p>\n<p>I thought of saving my model, convert all test DICOM into png, loading them all to an offline kernel and submitting the result. However, this will not fix the problem for the private data that is still in DICOM format.</p>\n<p>I hope this problem gains attention.</p>\n<p>EDIT:<br>\nI decided to use <a href=\"https://www.kaggle.com/eladwar/20-seconds-or-less\" target=\"_blank\">this</a> as reference and implemented vtk instead of pydicom.</p>",
  "messages": [
    {
      "id": 1006646,
      "postDate": "2020-09-11T13:00:33.150Z",
      "content": "<p>also discussed in the currently running Pulmonary Fibrosis competition. You may find helpful comments there.</p>\n<p>For now, I am just trapping the error and using a default all-zeros image. Hoping there are not too many of these in the private test dataset.</p>",
      "rawMarkdown": "also discussed in the currently running Pulmonary Fibrosis competition. You may find helpful comments there.\n\nFor now, I am just trapping the error and using a default all-zeros image. Hoping there are not too many of these in the private test dataset.",
      "votes": 1,
      "replies": [
        {
          "id": 1006679,
          "postDate": "2020-09-11T13:33:46.907Z",
          "content": "<p>Thanks! I saw <a href=\"https://www.kaggle.com/c/osic-pulmonary-fibrosis-progression/discussion/166957\" target=\"_blank\">this thread</a> that seems to have some fix. Will try it now and see.</p>",
          "rawMarkdown": "Thanks! I saw [this thread](https://www.kaggle.com/c/osic-pulmonary-fibrosis-progression/discussion/166957) that seems to have some fix. Will try it now and see."
        }
      ]
    },
    {
      "id": 1006634,
      "postDate": "2020-09-11T12:39:10.003Z",
      "content": "<p>I just want to raise this problem.</p>\n<p>To read DICOM files (*.dcm) you would need to use pydicom. However, while reading the pixel_array, for whatever reason, using it would SOMETIMES lead to an error of: </p>\n<pre><code>RuntimeError: The following handlers are available to decode the pixel data however they are missing required dependencies: GDCM (req. GDCM)\n</code></pre>\n<p>And to fix this error, you would need to download/update the GDCM module via conda:</p>\n<pre><code>!conda install -c conda-forge gdcm -y\n</code></pre>\n<p>In other words, you would be needing internet connection for your kernel. Can there be any loophole for this? Any fix?</p>\n<p>I thought of saving my model, convert all test DICOM into png, loading them all to an offline kernel and submitting the result. However, this will not fix the problem for the private data that is still in DICOM format.</p>\n<p>I hope this problem gains attention.</p>\n<p>EDIT:<br>\nI decided to use <a href=\"https://www.kaggle.com/eladwar/20-seconds-or-less\" target=\"_blank\">this</a> as reference and implemented vtk instead of pydicom.</p>",
      "rawMarkdown": "I just want to raise this problem.\n\nTo read DICOM files (*.dcm) you would need to use pydicom. However, while reading the pixel_array, for whatever reason, using it would SOMETIMES lead to an error of: \n\n```\nRuntimeError: The following handlers are available to decode the pixel data however they are missing required dependencies: GDCM (req. GDCM)\n```\n\nAnd to fix this error, you would need to download/update the GDCM module via conda:\n\n```\n!conda install -c conda-forge gdcm -y\n```\n\nIn other words, you would be needing internet connection for your kernel. Can there be any loophole for this? Any fix?\n\nI thought of saving my model, convert all test DICOM into png, loading them all to an offline kernel and submitting the result. However, this will not fix the problem for the private data that is still in DICOM format.\n\nI hope this problem gains attention.\n\n\nEDIT:\nI decided to use [this](https://www.kaggle.com/eladwar/20-seconds-or-less) as reference and implemented vtk instead of pydicom.",
      "votes": 1
    },
    {
      "id": 1006644,
      "postDate": "2020-09-11T12:58:20.237Z",
      "content": "<p>Thank you <a href=\"https://www.kaggle.com/seraphwedd18\" target=\"_blank\">@seraphwedd18</a> ! I was encountering the same problem! One solution is to manually download the gdcm library files into your input folder and do a conda offline install each time.</p>",
      "rawMarkdown": "Thank you @seraphwedd18 ! I was encountering the same problem! One solution is to manually download the gdcm library files into your input folder and do a conda offline install each time."
    }
  ],
  "comments": [
    {
      "id": 1006646,
      "author_name": "quadcore/Richard Epstein",
      "author_url": "",
      "post_date": "2020-09-11T13:00:33.150000",
      "content": "<p>also discussed in the currently running Pulmonary Fibrosis competition. You may find helpful comments there.</p>\n<p>For now, I am just trapping the error and using a default all-zeros image. Hoping there are not too many of these in the private test dataset.</p>",
      "votes": 1,
      "replies": [
        {
          "id": 1006679,
          "author_name": "Venturillo JE",
          "author_url": "",
          "post_date": "2020-09-11T13:33:46.907000",
          "content": "<p>Thanks! I saw <a href=\"https://www.kaggle.com/c/osic-pulmonary-fibrosis-progression/discussion/166957\" target=\"_blank\">this thread</a> that seems to have some fix. Will try it now and see.</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1006644,
      "author_name": "Alaa Triki",
      "author_url": "",
      "post_date": "2020-09-11T12:58:20.237000",
      "content": "<p>Thank you <a href=\"https://www.kaggle.com/seraphwedd18\" target=\"_blank\">@seraphwedd18</a> ! I was encountering the same problem! One solution is to manually download the gdcm library files into your input folder and do a conda offline install each time.</p>",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1006646": "also discussed in the currently running Pulmonary Fibrosis competition. You may find helpful comments there.\n\nFor now, I am just trapping the error and using a default all-zeros image. Hoping there are not too many of these in the private test dataset.",
    "1006634": "I just want to raise this problem.\n\nTo read DICOM files (*.dcm) you would need to use pydicom. However, while reading the pixel_array, for whatever reason, using it would SOMETIMES lead to an error of: \n\n```\nRuntimeError: The following handlers are available to decode the pixel data however they are missing required dependencies: GDCM (req. GDCM)\n```\n\nAnd to fix this error, you would need to download/update the GDCM module via conda:\n\n```\n!conda install -c conda-forge gdcm -y\n```\n\nIn other words, you would be needing internet connection for your kernel. Can there be any loophole for this? Any fix?\n\nI thought of saving my model, convert all test DICOM into png, loading them all to an offline kernel and submitting the result. However, this will not fix the problem for the private data that is still in DICOM format.\n\nI hope this problem gains attention.\n\n\nEDIT:\nI decided to use [this](https://www.kaggle.com/eladwar/20-seconds-or-less) as reference and implemented vtk instead of pydicom.",
    "1006644": "Thank you @seraphwedd18 ! I was encountering the same problem! One solution is to manually download the gdcm library files into your input folder and do a conda offline install each time."
  }
}