[AstroPy] PyWCS build failure on Windows 7 and Windows XP with EPD

Tom Aldcroft aldcroft at head.cfa.harvard.edu
Sun Apr 3 19:04:35 EDT 2011

Hi -

I'm am unable to build PyWCS on a Windows 7 and Windows XP machines
using the latest EPD 7.0.2.  In both cases I get the same compiler
error.   Any hints or advice would be most welcome.  Below I include
configuration information and the build log.

Thanks, Tom


Windows 7 Pro 64bit, 2009, fully updated.

Python version is 2.7.1 -- EPD 7.0-2 (64bit)

Here is what I get with "python setup.py install" command from the
directory indicated, where I unzipped the pywcs tar ball:

C:\Python27\Scripts\pywcs-1.10-4.7>python setup.py install

running install
running build
running build_py
copying lib\svn_version.py -> build\lib.win-amd64-2.7\pywcs

running build_ext
building 'pywcs._pywcs' extension
C:\Python27\Scripts\gcc.exe -mno-cygwin -mdll -O -Wall -DMS_WIN64 -DECHO -DWCSTR
WARNINGS -UDEBUG -IC:\Python27\lib\site-packages\numpy\core\include -I.\wcslib\C
 -Iwcslib\C -I.\src -IC:\Python27\include -IC:\Python27\PC -c wcslib\C\flexed/wc
sbth.c -o build\temp.win-amd64-2.7\Release\wcslib\c\flexed\wcsbth.o
In file included from wcsbth.l:118:0:
.\wcslib\C/wcs.h:1396:5: error: conflicting types for 'wcsset'
:161:20: note: previous declaration of 'wcsset' was here
wcsbth.l: In function 'wcsbth':
wcsbth.l:2081:1: warning: statement with no effect
wcsbth.l: At top level:
wcsbth.c:19886:16: warning: 'input' defined but not used
error: command 'gcc' failed with exit status 1

More information about the AstroPy mailing list