title: Python unable to open a .h5 file
body: <p>I am trying to open a HDF5 file in order to read it with python, so that I can do more things with it later. There is an error when I run the program to read the file. The program is below:</p>
  
  <pre><code>import h5py    # HDF5 support
  import numpy
  
  fileName = "C:/.../file.h5"
  f = h5py.File(fileName,  "r")
  for item in f.attrs.keys():
      print item + ":", f.attrs[item]
  mr = f['/entry/mr_scan/mr']
  i00 = f['/entry/mr_scan/I00']
  print "%s\t%s\t%s" % ("#", "mr", "I00")
  for i in range(len(mr)):
      print "%d\t%g\t%d" % (i, mr[i], i00[i])
  f.close()
  </code></pre>
  
  <p>If I run the program I end up seeing this error:</p>
  
  <pre><code>Traceback (most recent call last):
   File "TestHD5.py", line 8, in &lt;module&gt;
      mr = f['/entry/mr_scan/mr']
   File "h5py\_objects.pyx", line 54, in h5py._objects.with_phil.wrapper (C:\aroot\work\h5py\_objects.c:2587)
   File "h5py\_objects.pyx", line 55, in h5py._objects.with_phil.wrapper (C:\aroot\work\h5py\_objects.c:2546)
   File "C:\programs\Python27\lib\site-packages\h5py\_hl\group.py", line 166, in __getitem__
      oid = h5o.open(self.id, self._e(name), lapl=self._lapl)
   File "h5py\_objects.pyx", line 54, in h5py._objects.with_phil.wrapper (C:\aroot\work\h5py\_objects.c:2587)
   File "h5py\_objects.pyx", line 55, in h5py._objects.with_phil.wrapper (C:\aroot\work\h5py\_objects.c:2546)
   File "h5py\h5o.pyx", line 190, in h5py.h5o.open (C:\aroot\work\h5py\h5o.c:3417)
  KeyError: 'Unable to open object (Component not found)'
  </code></pre>
  
  <p>Am I just missing some modules to read the file, or is this something else. It will open the .h5 file if I use an h5 file veiwer program. Thank you</p>