I have this code:
from astropy.io import fits
filename = tkinter.filedialog.askopenfilename()
file = fits.open(filename)
When trying to run under Python 2.7, everything works fine. But under Python 3.4 there is this problem:
WARNING: An exception occurred matching an HDU header to the appropriate HDU type: [astropy.io.fits.hdu.base]
WARNING: The HDU will be treated as corrupted. [astropy.io.fits.hdu.base]
After this warning, I'm unable to perform operations on my file. Any ideas how to handle this problem?