title: H5PY IOError: Unable to open file (File signature not found)
body: <p>I'm having problems opening .h5 files.</p>
  <p>I've googled around and messed about with keras but still no luck.</p>
  <p>Here's my code :-</p>
  <p>and this is giving me an error of :-</p>
  <pre><code>import numpy as np
  import matplotlib.pyplot as plt
  import matplotlib.animation as animation
  import h5py
  
  &quot;&quot;&quot; Reading Data from Files &quot;&quot;&quot;
  
  plt.close('all')
  
  #File No.
  Q = str(4)
  
  &quot;&quot;&quot; Position &quot;&quot;&quot;
  with h5py.File('Data_No'+Q+'/Position_No'+Q+'.h5', 'r') as hf:
      Position = hf['Position_Data'][:]
  </code></pre>
  <p>And its giving an error which i have no idea whats going wrong :-</p>
  <blockquote>
  <p>Traceback (most recent call last):</p>
  <p>File &quot;/media/gerwyn/Gerwyns_Files/Work/PLF/Animation.py&quot;, line 20, in</p>
  
  <p>with h5py.File('Data_No'+Q+'/Position_No'+Q+'.h5', 'r') as hf:</p>
  <p>File &quot;/home/gerwyn/Documents/anaconda2/lib/python2.7/site-</p>
  <p>packages/h5py/_hl/files.py&quot;, line 271, in <strong>init</strong></p>
  <p>fid = make_fid(name, mode, userblock_size, fapl, swmr=swmr)</p>
  <p>File &quot;/home/gerwyn/Documents/anaconda2/lib/python2.7/site-</p>
  <p>packages/h5py/_hl/files.py&quot;, line 101, in make_fid</p>
  <p>fid = h5f.open(name, flags, fapl=fapl)</p>
  <p>File &quot;h5py/_objects.pyx&quot;, line 54, in h5py._objects.with_phil.wrapper</p>
  <p>File &quot;h5py/_objects.pyx&quot;, line 55, in h5py._objects.with_phil.wrapper</p>
  <p>File &quot;h5py/h5f.pyx&quot;, line 78, in h5py.h5f.open</p>
  <p>IOError: Unable to open file (File signature not found)</p>
  </blockquote>
  <p>Can someone please help me in my little predicament ?</p>
  <p>Thanks :D</p>