<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On May 20, 2019, at 2:05 AM, Sean Lake <<a href="mailto:odysseus9672@gmail.com" class="">odysseus9672@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">I'm running into a problem using py27-astropy. Two of the modules in<br class="">astropy are for opening an image file format called "fits"<br class="">(astropy.io.fits) and parsing the coordinate system of the image to<br class="">and from the celestial sphere (astropy.wcs). When I attempt to use the<br class="">modules, however, I'm getting a segmentation fault. Here's example<br class="">code to produce the problem (you'll need a fits file of your own to<br class="">replicate it):<br class=""><br class="">Seans-Work-Macbook-Pro:ExtinctionMaps sean$ python2.7<br class="">Python 2.7.16 (default, Apr 1 2019, 14:50:41)<br class="">[GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.46.3)] on darwin<br class="">Type "help", "copyright", "credits" or "license" for more information.<br class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><blockquote type="cite" class="">import astropy.wcs as pywcs<br class="">import astropy.io.fits as pf<br class="">f = pf.open("ExampleFile.fits")<br class="">pywcs.WCS( f[0].header )<br class=""></blockquote></blockquote></blockquote>Segmentation fault: 11<br class=""><br class="">I also have py36-astropy installed, so there may be a problem with the<br class="">underlying library astropy uses to parse the world coordinate system<br class="">(wcs), wcslib. I tried to run<br class=""><br class="">port upgrade --force py27-astropy<br class=""><br class="">under that assumption, and it didn't help.<br class=""><br class="">The reason I'm trying to get py27-astropy working is because I have<br class="">many legacy scripts that would be a pain in the tuchus to update for<br class="">working with python 3.6.<br class=""><br class="">If you need me to produce a fits file to assist with the debugging,<br class="">let me know. The "Example.fits" file is only 78KB.<br class=""></div></blockquote><br class=""></div><div>This issue is basically covered in the existing Trac ticket:</div><div><br class=""></div><div><a href="https://trac.macports.org/ticket/58332" class="">https://trac.macports.org/ticket/58332</a></div><div><br class=""></div><div>The maintainer is not responding. Hopefully someone will jump in and debug and fix the problem. </div><div><br class=""></div><div><br class=""></div><div><br class=""></div></body></html>