{
  "id": 198338,
  "title": "Error Loading TIFFs on Windows - SOLUTION",
  "url": "/competitions/hubmap-kidney-segmentation/discussion/198338",
  "author_name": "gowdy",
  "post_date": "2020-11-20T18:43:14.327000",
  "votes": 3,
  "comment_count": 0,
  "views": 0,
  "content": "<p>Ran into the following error while trying to load training images on windows with PIL:</p>\n<p>tempfile.tif: Cannot read TIFF header.<br>\nOSError: -2</p>\n<p>Appears to be some kind of compression/decompression version mismatch. Found a quick fix here:<br>\n<a href=\"https://github.com/python-pillow/Pillow/issues/4237\" target=\"_blank\">https://github.com/python-pillow/Pillow/issues/4237</a></p>\n<p>Specifically, update libtiff with:</p>\n<p>conda install libtiff=4.1.0=h885aae3_4 -c conda-forge</p>\n<p>Just wanted to share in case anyone else hits the same speedbump!</p>",
  "messages": [
    {
      "id": 1085202,
      "postDate": "2020-11-20T18:43:14.327Z",
      "content": "<p>Ran into the following error while trying to load training images on windows with PIL:</p>\n<p>tempfile.tif: Cannot read TIFF header.<br>\nOSError: -2</p>\n<p>Appears to be some kind of compression/decompression version mismatch. Found a quick fix here:<br>\n<a href=\"https://github.com/python-pillow/Pillow/issues/4237\" target=\"_blank\">https://github.com/python-pillow/Pillow/issues/4237</a></p>\n<p>Specifically, update libtiff with:</p>\n<p>conda install libtiff=4.1.0=h885aae3_4 -c conda-forge</p>\n<p>Just wanted to share in case anyone else hits the same speedbump!</p>",
      "rawMarkdown": "Ran into the following error while trying to load training images on windows with PIL:\n\ntempfile.tif: Cannot read TIFF header.\nOSError: -2\n\nAppears to be some kind of compression/decompression version mismatch. Found a quick fix here:\nhttps://github.com/python-pillow/Pillow/issues/4237\n\nSpecifically, update libtiff with:\n\nconda install libtiff=4.1.0=h885aae3_4 -c conda-forge\n\nJust wanted to share in case anyone else hits the same speedbump!",
      "votes": 3
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "1085202": "Ran into the following error while trying to load training images on windows with PIL:\n\ntempfile.tif: Cannot read TIFF header.\nOSError: -2\n\nAppears to be some kind of compression/decompression version mismatch. Found a quick fix here:\nhttps://github.com/python-pillow/Pillow/issues/4237\n\nSpecifically, update libtiff with:\n\nconda install libtiff=4.1.0=h885aae3_4 -c conda-forge\n\nJust wanted to share in case anyone else hits the same speedbump!"
  }
}