# Getting error in mhd file reading

**URL:** https://discourse.itk.org/t/getting-error-in-mhd-file-reading/3727
**Category:** Beginner Questions
**Tags:** simpleitk, python
**Created:** [December 22, 2020, 6:10am UTC](https://discourse.itk.org/t/getting-error-in-mhd-file-reading/3727 "2020-12-22T06:10:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![anirban1513](https://discourse.itk.org/user_avatar/discourse.itk.org/anirban1513/32/1840_2.png) [@anirban1513](https://discourse.itk.org/u/anirban1513)
#### Post date: [December 22, 2020, 6:10am UTC](https://discourse.itk.org/t/getting-error-in-mhd-file-reading/3727/1 "2020-12-22T06:10:16Z")

</div>

I am getting this error!!

THE mhd File can’t be found or read by the simpleitk 1.2.4

I am getting the same error!

What to do??

RuntimeError: Exception thrown in SimpleITK ReadImage: /tmp/SimpleITK-build/ITK/Modules/IO/Meta/src/itkMetaImageIO.cxx:491:  
itk::ERROR: MetaImageIO(0x5626ef6dffe0): File cannot be read: /data/lobedata/LUNG\_LOBE\_CT\_Data/Train/Image/1.3.6.1.4.1.14519.5.2.1.6279.6001.307835307280028057486413359377.mhd for reading.  
Reason: No such file or directory

I was reading the file by this code: sitk.ReadImage(file\_image, sitk.sitkInt16)  
But I checked that the file is there.

I am using ubuntu 18.04. SimpleITK 1.2.4

---

<div class="post-metadata">

### Author: ![zivy](https://discourse.itk.org/user_avatar/discourse.itk.org/zivy/32/1726_2.png) [@zivy](https://discourse.itk.org/u/zivy)
#### Post date: [December 22, 2020, 1:51pm UTC](https://discourse.itk.org/t/getting-error-in-mhd-file-reading/3727/2 "2020-12-22T13:51:15Z")

</div>

Hello @anirban1513,

Please don’t cross post to the SimpleITK GitHub issues and to the ITK discourse. Posting on one of these forums is sufficient.

The question was answered on the SimpleITK github issues post.
