[AstroPy] pywcs 1.10-4.7 install failure on Microsoft Windows
Mark Sienkiewicz
sienkiew at stsci.edu
Wed Dec 28 13:36:40 EST 2011
On 12/25/11 16:25, Tim Jenness wrote:
> On Sun, Dec 25, 2011 at 6:29 AM, Rahul Patel<rahpatel at ic.sunysb.edu> wrote:
>> Ya.... I'm not really comfortable with commenting or changing that out.I
>> really wish there were some way for this to work.
>>
> The real fix is for pywcs to be modified so that it does not use a
> fucntion called wcsset() otherwise this clash is going to continue.
>
The problem is actually in the C code for wcslib, the library that pywcs is based on. wcslib defines a function named wcsset (see pywcs/wcslib/C/wcs.c). I seem to remember Mike Droettboom telling me that he has to patch wcslib every time he incorporates a new version into pywcs.
If you are in a hurry to make pywcs work, I can suggest either a hack around the problem (as has been discussed) or use an earlier version of pywcs from before the integration of wcslib-4.8 began.
I seem to remember that the pywcs that was include in STSCI_PYTHON 2.12 compiled on Windows. You can download source code for stsci_python from http://www.stsci.edu/resources/software_hardware/stsci_python/current/download and then install only the pywcs package instead of the entire distribution. Just "cd pywcs ; python setup.py install".
If it is not urgent, Mike can probably give you a more satisfactory solution when he comes back from the holidays.
Mark S.
More information about the AstroPy
mailing list