title: h5 file open error despite using the absolute path of the file or placing the data file in the working directory
body: <p>I have a directory that contains all the h5 data files. I started with one of them for calculations. The code I had worked fine to read that file. However, when I used the same code to read a different data file in the very same directory, I got the following error message:</p>
  <p>&quot;FileNotFoundError: [Errno 2] Unable to open file (unable to open file: name = 'N.2019-06.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)&quot;</p>
  <p>When I got this error message, I placed the data file 'N.2019-06.h5' in my working directory. I also tried with an absolute path for the fie and got the same error message.</p>
  <p>I googled the internet for ways to deal with the problem. Those are the two ways, i.e., using an absolute path for the file or placing it in the working directory, I found but neither worked for me.</p>
  <p>Then I simply used three lines as follows to try to read the data file and got the same error message:</p>
  <pre><code>import h5py
  infile = f&quot;N.2019-06.h5&quot;    
  f1 = h5py.File(infile,'r')
  </code></pre>
  <p>However, if I changed the infile to the very first file I read, it worked. Is there any other way that I am not aware of to deal with this problem? BTW, I encountered the problem in Jupyter, and then I ran the code in Spider and had the same error message. Thank you very much for your help!</p>