{
  "id": 171101,
  "title": "GDCM library import problems (SOLVED)",
  "url": "/competitions/osic-pulmonary-fibrosis-progression/discussion/171101",
  "author_name": "",
  "post_date": "2020-07-30T12:15:10.203866500Z",
  "votes": 2,
  "comment_count": 6,
  "views": 0,
  "content": "<p>Solution:\n- If you're on Kaggle run:\n    - <code>!conda install -c conda-forge gdcm -y</code>\n- If you're on Windows:\n    - Install GDCM from <a href=\"https://github.com/malaterre/GDCM/releases\">https://github.com/malaterre/GDCM/releases</a>\n    - Copy <code>_gdcmswig.pyd</code>, <code>gdcm.py</code>, <code>gdcmswig.py</code> from <code>C:\\Program Files\\GDCM 3.0\\lib</code> to <code>C:\\Users\\...\\AppData\\Local\\Programs\\Python\\Python37\\DLLs</code> (directory names may vary based on the versions)\n- Verify installation (Python):\n    - <code>import gdcm</code>\n- Still have problems?\n    - restart your Kaggle notebook or computer</p>\n\n<hr>\n\n<p>Sources:\n- <a href=\"https://www.kaggle.com/c/osic-pulmonary-fibrosis-progression/discussion/166957\">https://www.kaggle.com/c/osic-pulmonary-fibrosis-progression/discussion/166957</a>\n- <a href=\"https://motivatedbylaziness.wordpress.com/2018/07/06/the-impossible-journey-of-a-simple-task/\">https://motivatedbylaziness.wordpress.com/2018/07/06/the-impossible-journey-of-a-simple-task/</a></p>",
  "messages": [
    {
      "id": "951790",
      "postDate": "07/30/2020 12:15:10",
      "content": "<p>Solution:\n- If you're on Kaggle run:\n    - <code>!conda install -c conda-forge gdcm -y</code>\n- If you're on Windows:\n    - Install GDCM from <a href=\"https://github.com/malaterre/GDCM/releases\">https://github.com/malaterre/GDCM/releases</a>\n    - Copy <code>_gdcmswig.pyd</code>, <code>gdcm.py</code>, <code>gdcmswig.py</code> from <code>C:\\Program Files\\GDCM 3.0\\lib</code> to <code>C:\\Users\\...\\AppData\\Local\\Programs\\Python\\Python37\\DLLs</code> (directory names may vary based on the versions)\n- Verify installation (Python):\n    - <code>import gdcm</code>\n- Still have problems?\n    - restart your Kaggle notebook or computer</p>\n\n<hr>\n\n<p>Sources:\n- <a href=\"https://www.kaggle.com/c/osic-pulmonary-fibrosis-progression/discussion/166957\">https://www.kaggle.com/c/osic-pulmonary-fibrosis-progression/discussion/166957</a>\n- <a href=\"https://motivatedbylaziness.wordpress.com/2018/07/06/the-impossible-journey-of-a-simple-task/\">https://motivatedbylaziness.wordpress.com/2018/07/06/the-impossible-journey-of-a-simple-task/</a></p>",
      "rawMarkdown": "Solution:\n- If you're on Kaggle run:\n    - `!conda install -c conda-forge gdcm -y`\n- If you're on Windows:\n    - Install GDCM from https://github.com/malaterre/GDCM/releases\n    - Copy `_gdcmswig.pyd`, `gdcm.py`, `gdcmswig.py` from `C:\\Program Files\\GDCM 3.0\\lib` to `C:\\Users\\...\\AppData\\Local\\Programs\\Python\\Python37\\DLLs` (directory names may vary based on the versions)\n- Verify installation (Python):\n    - `import gdcm`\n- Still have problems?\n    - restart your Kaggle notebook or computer\n\n---\n\nSources:\n- https://www.kaggle.com/c/osic-pulmonary-fibrosis-progression/discussion/166957\n- https://motivatedbylaziness.wordpress.com/2018/07/06/the-impossible-journey-of-a-simple-task/",
      "votes": null
    },
    {
      "id": "971602",
      "postDate": "08/15/2020 18:09:12",
      "content": "<p>Remember that by the competition rules you cannot use internet, so your first solution won't work. I am trying to upload the necessary instalation files to kaggle to solve this problem.</p>",
      "rawMarkdown": "Remember that by the competition rules you cannot use internet, so your first solution won't work. I am trying to upload the necessary instalation files to kaggle to solve this problem.",
      "votes": null
    },
    {
      "id": "975354",
      "postDate": "08/18/2020 08:59:37",
      "content": "<p>I switched from Pydicom to SimpleITK, which doesn't have this issue, although some .dcm images can still not be loaded (not so many though)</p>",
      "rawMarkdown": "I switched from Pydicom to SimpleITK, which doesn't have this issue, although some .dcm images can still not be loaded (not so many though)",
      "votes": null
    },
    {
      "id": "985765",
      "postDate": "08/26/2020 02:08:16",
      "content": "<p>Yes, GDCM can be used; but then the solution cannot be submitted as its installation requires the use of the internet.</p>",
      "rawMarkdown": "Yes, GDCM can be used; but then the solution cannot be submitted as its installation requires the use of the internet.",
      "votes": null
    },
    {
      "id": "994058",
      "postDate": "09/01/2020 10:36:08",
      "content": "<p>i also feel confused, we can't submit if we use thise install </p>",
      "rawMarkdown": "i also feel confused, we can't submit if we use thise install",
      "votes": null
    },
    {
      "id": "1023494",
      "postDate": "09/23/2020 08:55:28",
      "content": "<p><a href=\"https://www.kaggle.com/brodzik\" target=\"_blank\">@brodzik</a>  how can we do on colab </p>",
      "rawMarkdown": "brodzik  how can we do on colab",
      "votes": null
    },
    {
      "id": "1024071",
      "postDate": "09/23/2020 16:12:13",
      "content": "<p>Despite being possible to install conda and use it in Colab, it doesn't work as expected because the conda environment doesn't persist between one cell and another.</p>\n<p>If you use the kernel in Colab to run VSCode Server for instance in one cell and do your coding in the external VSCode, then you can use conda because the environment which you are executing conda and VSCode is only running inside one cell. Thank it works as expected but you are not e using the notebook in Colab </p>",
      "rawMarkdown": "Despite being possible to install conda and use it in Colab, it doesn't work as expected because the conda environment doesn't persist between one cell and another.\n\nIf you use the kernel in Colab to run VSCode Server for instance in one cell and do your coding in the external VSCode, then you can use conda because the environment which you are executing conda and VSCode is only running inside one cell. Thank it works as expected but you are not e using the notebook in Colab",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 971602,
      "author_name": "ronaldokun",
      "author_url": "",
      "post_date": "08/15/2020 18:09:12",
      "content": "<p>Remember that by the competition rules you cannot use internet, so your first solution won't work. I am trying to upload the necessary instalation files to kaggle to solve this problem.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 975354,
      "author_name": "nickgm",
      "author_url": "",
      "post_date": "08/18/2020 08:59:37",
      "content": "<p>I switched from Pydicom to SimpleITK, which doesn't have this issue, although some .dcm images can still not be loaded (not so many though)</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 985765,
      "author_name": "rajpatel5521",
      "author_url": "",
      "post_date": "08/26/2020 02:08:16",
      "content": "<p>Yes, GDCM can be used; but then the solution cannot be submitted as its installation requires the use of the internet.</p>",
      "votes": null,
      "replies": [
        {
          "id": 994058,
          "author_name": "algeryang",
          "author_url": "",
          "post_date": "09/01/2020 10:36:08",
          "content": "<p>i also feel confused, we can't submit if we use thise install </p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1023494,
      "author_name": "jaideepvalani",
      "author_url": "",
      "post_date": "09/23/2020 08:55:28",
      "content": "<p><a href=\"https://www.kaggle.com/brodzik\" target=\"_blank\">@brodzik</a>  how can we do on colab </p>",
      "votes": null,
      "replies": [
        {
          "id": 1024071,
          "author_name": "ronaldokun",
          "author_url": "",
          "post_date": "09/23/2020 16:12:13",
          "content": "<p>Despite being possible to install conda and use it in Colab, it doesn't work as expected because the conda environment doesn't persist between one cell and another.</p>\n<p>If you use the kernel in Colab to run VSCode Server for instance in one cell and do your coding in the external VSCode, then you can use conda because the environment which you are executing conda and VSCode is only running inside one cell. Thank it works as expected but you are not e using the notebook in Colab </p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "951790": "Solution:\n- If you're on Kaggle run:\n    - `!conda install -c conda-forge gdcm -y`\n- If you're on Windows:\n    - Install GDCM from https://github.com/malaterre/GDCM/releases\n    - Copy `_gdcmswig.pyd`, `gdcm.py`, `gdcmswig.py` from `C:\\Program Files\\GDCM 3.0\\lib` to `C:\\Users\\...\\AppData\\Local\\Programs\\Python\\Python37\\DLLs` (directory names may vary based on the versions)\n- Verify installation (Python):\n    - `import gdcm`\n- Still have problems?\n    - restart your Kaggle notebook or computer\n\n---\n\nSources:\n- https://www.kaggle.com/c/osic-pulmonary-fibrosis-progression/discussion/166957\n- https://motivatedbylaziness.wordpress.com/2018/07/06/the-impossible-journey-of-a-simple-task/",
    "971602": "Remember that by the competition rules you cannot use internet, so your first solution won't work. I am trying to upload the necessary instalation files to kaggle to solve this problem.",
    "975354": "I switched from Pydicom to SimpleITK, which doesn't have this issue, although some .dcm images can still not be loaded (not so many though)",
    "985765": "Yes, GDCM can be used; but then the solution cannot be submitted as its installation requires the use of the internet.",
    "994058": "i also feel confused, we can't submit if we use thise install",
    "1023494": "brodzik  how can we do on colab",
    "1024071": "Despite being possible to install conda and use it in Colab, it doesn't work as expected because the conda environment doesn't persist between one cell and another.\n\nIf you use the kernel in Colab to run VSCode Server for instance in one cell and do your coding in the external VSCode, then you can use conda because the environment which you are executing conda and VSCode is only running inside one cell. Thank it works as expected but you are not e using the notebook in Colab"
  },
  "source": "meta"
}