title: Python, PyFITS, cannot open file
body: <p>I have problem in opening FITS file in Python. I get following error-message:  </p>
  
  <pre><code>File "G:\Anaconda\lib\site-packages\pyfits\file.py", line 416, in _open_filelike % self.mode)  
  IOError: File-like object does not have a 'write' method, required for mode 'ostream'
  </code></pre>
  
  <p>at <code>hdulist = pft.open(path)</code> line (I did import <code>pyfits</code> as <code>pft</code>).</p>
  
  <p>I checked the path twice - it's correct.<br>
  I'm not able to find any reference to this error in context of using PyFITS and I will be gratefull for any help.</p>
  
  <p><strong>UPDATE:</strong><br>
  I missed some details and I'm sorry for it.<br>
  First of all: I'm using PyFITS 3.3 under Anaconda distribution for Windows (Windows XP 32-bit).<br>
  Code of whole widget you can find at this link:<br>
  <a href="http://pastebin.com/GpXp4MWK" rel="nofollow">FileView</a><br>
  In a short - I'm making simple explorer for filesystem, just to let user navigate to folder with FITS files and read it from folder. All project is under PyQT4.</p>