[AstroPy] UserWarning When Opening FITS File

j. vickroy jgv.home at gmail.com
Sun Mar 6 10:48:21 EST 2016


My system is:

Microsoft Windows 10 (64-bit)
Python 3.5.1
AstroPy 1.1.1 (from http://www.lfd.uci.edu/~gohlke/pythonlibs/#astropy)
NumPy 1.10.4 (from http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy)

The following is an interactive session illustrating the warning:

PythonWin 3.5.1 (v3.5.1:37a07cee5969, Dec  6 2015, 01:54:25) [MSC v.1900 
64 bit (AMD64)] on win32.
Portions Copyright 1994-2008 Mark Hammond - see 'Help/About PythonWin' 
for further copyright information.
 >>> import astropy.io.fits
 >>> import numpy
 >>> astropy.__version__
 >>> numpy.__version__
 >>> sourcefile = 
 >>> HDUs       = astropy.io.fits.open (sourcefile)
UserWarning: Could not find appropriate MS Visual C Runtime library or 
library is corrupt/misconfigured; cannot determine whether your file 
object was opened in append mode.  Please consider using a file object 
opened in write mode instead.
   'Could not find appropriate MS Visual C Runtime '

I would appreciate feedback about what is wrong with my setup and how to 
repair it.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20160306/6d5edf8e/attachment.html>

More information about the AstroPy mailing list