[AstroPy] pywcs 1.10-4.7 install failure on Microsoft Windows

Rahul Patel rahpatel at ic.sunysb.edu
Sun Dec 25 11:29:01 EST 2011


Ya.... I'm not really comfortable with commenting or changing that out.I
really wish there were some way for this to work.

-Rahul


On Fri, Dec 23, 2011 at 11:48 AM, Jim Vickroy <jim.vickroy at noaa.gov> wrote:

>
>
> On Fri, Dec 23, 2011 at 3:24 AM, Hans Terlouw <J.P.Terlouw at astro.rug.nl>wrote:
>
>>  On 12/23/2011 12:34 AM, Jim Vickroy wrote:
>> > My Python version is: '2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC
>> v.1500 32
>> > bit (Intel)]' and numpy.__version__ is: '1.6.1'
>> >
>> > Here is the output from my installation attempt:
>> >
>> > C:\Documents and Settings\jim.vickroy\My
>> > Documents\$downloads\languages\Python\pywcs\pywcs-1.10-4.7>setup.py
>> install
>> > running install
>> > running build
>> > running build_py
>> > creating build
>> > creating build\lib.win32-2.6
>> > creating build\lib.win32-2.6\pywcs
>> > copying lib\pywcs.py -> build\lib.win32-2.6\pywcs
>> > copying lib\svn_version.py -> build\lib.win32-2.6\pywcs
>> > copying lib\_docutil.py -> build\lib.win32-2.6\pywcs
>> > copying lib\__init__.py -> build\lib.win32-2.6\pywcs
>> > creating build\lib.win32-2.6\pywcs\tests
>> > copying lib\tests\test.py -> build\lib.win32-2.6\pywcs\tests
>> > copying lib\tests\__init__.py -> build\lib.win32-2.6\pywcs\tests
>> > running build_ext
>> > building 'pywcs._pywcs' extension
>> > creating build\temp.win32-2.6
>> > creating build\temp.win32-2.6\Release
>> > creating build\temp.win32-2.6\Release\wcslib
>> > creating build\temp.win32-2.6\Release\wcslib\C
>> > creating build\temp.win32-2.6\Release\wcslib\C\flexed
>> > creating build\temp.win32-2.6\Release\src
>> > c:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo
>> /Ox /MD
>> > /W3 /GS- /DNDEBUG -DECHO -DWCSTRIG_MACRO -DPYWCS_BUILD -D_GNU_SOURCE
>> -DNDEBUG
>> > -DYY_NO_UNISTD_H -D_CRT_SECURE_NO_WARNINGS -UDEBUG
>> -IC:\Python26\lib\site-
>> > packages\numpy\core\include -I.\wcslib\C -Iwcslib\C -I.\src
>> > -IC:\Python26\include -IC:\Python26\PC /Tcwcslib\C\flexed/wcsbth.c
>> > /Fobuild\temp.win32-2.6\Release\wcslib\C\flexed/wcsbth.obj
>> > wcsbth.c
>> > .\wcslib\C\wcs.h(1396) : warning C4030: first formal parameter list
>> longer than
>> > the second list
>> > .\wcslib\C\wcs.h(1396) : warning C4028: formal parameter 1 different
>> from
>> > declaration
>> > .\wcslib\C\wcs.h(1396) : error C2040: 'wcsset' : 'int (wcsprm *)'
>> differs in
>> > levels of indirection from 'int (wcsprm *)'
>> > error: command '"c:\Program Files\Microsoft Visual Studio
>> 9.0\VC\BIN\cl.exe"'
>> > failed with exit status 2
>>
>> In a different context (the Kapteyn Package) I have also encountered this
>> problem. It is caused by the declaration of the (since 2005 deprecated)
>> POSIX
>> function wcsset() in Visual Studio's string.h. In Unix and Linux
>> environments
>> this declaration is absent so there the problem doesn't occur. In my case
>> I
>> solved it by editing string.h in Notepad to change all strings "wcsset"
>> into
>> "XwcsXsetX". I am aware that others may dislike this (don't _ever_ change
>> a
>> "system" file!) but for me its works.
>>
>> Hans Terlouw
>> _______________________________________________
>> AstroPy mailing list
>> AstroPy at scipy.org
>> http://mail.scipy.org/mailman/listinfo/astropy
>>
>
>
> Thanks for this information.
>
> I did a search of my computer for string.h and there are 5 instances (all
> are associated with
> Visual Studio in some capacity ... mobile devices, etc.).
>
> I think I'll be conservative here and not change string.h.
>
> It would be nice if pywcs would work on MS Windows.  It is advertised to,
> but I have never been able to get it to install.
>
> -- jv
>
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20111225/33c1bdc0/attachment.html>


More information about the AstroPy mailing list