astropy.io.fits does not work properly under Python 3 -


i have code:

from astropy.io import fits  filename = tkinter.filedialog.askopenfilename() file = fits.open(filename) 

when trying run under python 2.7, works fine. under python 3.4 there problem:

warning: exception occurred matching hdu header appropriate hdu type:  [astropy.io.fits.hdu.base]  warning: hdu treated corrupted. [astropy.io.fits.hdu.base] 

after warning, i'm unable perform operations on file. ideas how handle problem?


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -