[AstroPy] PyWCS build failure on Windows 7 EPD -Similar

Rahul Patel rahpatel at ic.sunysb.edu
Thu Dec 22 22:49:24 EST 2011


This is similar to a post back on Apr 4 2011, about problems with PyWCS
failing to build on win 7 with EPD. The difference is I'm using

Python 2.6.6 , EPD 6.3-2 (32-bit).

I saw the patch you provided the previous user, but am unsure if that
applies to my situation or how I would actually apply it.

When I type and run "run setup.py install" in IPython, in the directory
"C:\Python26\pywcs-1.10-4.7\" I get the following:

run setup.py install
running install
running build
running build_py
copying lib\svn_version.py -> build\lib.win32-2.6\pywcs
running build_ext
building 'pywcs._pywcs' extension
C:\Python26\Lib\Scripts\gcc.exe -mno-cygwin -mdll -O -Wall -DECHO
-DWCSTRIG_MACRO -DPYWCS_BUILD -D_GNU_SOURCE -DNDEBUG -DYY_NO_UNISTD_H
-D_CRT_SECURE_NO_WARNIN
S -UDEBUG -IC:\Python26\Lib\lib\site-packages\numpy\core\include
-I.\wcslib\C -Iwcslib\C -I.\src -IC:\Python26\Lib\include
-IC:\Python26\Lib\PC -c wcslib\C\fle
ed/wcsbth.c -o build\temp.win32-2.6\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'
c:/python26/lib/egg-info/mingw/usr/lib/gcc/../../i686-w64-mingw32/include/string.h: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
BaseException.message has been deprecated as of Python 2.6
---------------------------------------------------------------------------
SystemExit                                Traceback (most recent call last)

C:\Python26\pywcs-1.10-4.7\setup.py in <module>()
     23     pytools_version = None
     24
---> 25 H.run(pytools_version = pytools_version)
     26
     27

C:\Python26\pywcs-1.10-4.7\stsci_distutils_hack.pyc in run(pytools_version)
    102         packages =          pkg,
    103
--> 104         **setupargs
    105
    106         )

C:\Python26\Lib\lib\distutils\core.pyc in setup(**attrs)
    167                 raise
    168             else:
--> 169                 raise SystemExit, "error: " + str(msg)
    170
    171     return dist

SystemExit: error: command 'gcc' failed with exit status 1
WARNING: Failure executing file: <setup.py>

Thank you very much
Rahul.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20111222/bb469c7f/attachment.html>


More information about the AstroPy mailing list