[AstroPy] trouble installing pywcs-1.10-4.7 on Win XP with python 2.7.2
Heather Kelly
heather625 at gmail.com
Tue Jun 28 14:56:33 EDT 2011
Hi,
I have successfully installed pywcs in the past, most recently with python
2.6.5 on windows XP. I am now trying to move to python 2.7.2, however pywcs
refuses to install:
C:\>C:\Python27\Scripts\pip.
exe install pywcs
Downloading/unpacking pywcs
Downloading pywcs-1.10-4.7.tar.gz (2.0Mb): 2.0Mb downloaded
Running setup.py egg_info for package pywcs
warning: no files found matching 'doc\source\_templates'
warning: no files found matching 'doc\source\_static'
warning: no files found matching 'examples\*.fits'
Installing collected packages: pywcs
Running setup.py install for pywcs
building 'pywcs._pywcs' extension
c:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo
/Ox /M
D /W3 /GS- /DNDEBUG -DECHO -DWCSTRIG_MACRO -DPYWCS_BUILD -D_GNU_SOURCE
-DNDEBUG
-DYY_NO_UNISTD_H -D_CRT_SECURE_NO_WARNINGS -UDEBUG
-IC:\Python27\lib\site-packages\numpy\core\include -I.\wcslib\C -Iwcslib\C
-I.\src -IC:\Python27\include -IC:
\Python27\PC /Tcwcslib\C\flexed/wcsbth.c
/Fobuild\temp.win32-2.7\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
Complete output from command C:\Python27\python.exe -c "import
setuptools;__file__='C:\\build\\pywcs\\setup.py';exec(compile(open(__file__).read().replace('
\r\n', '\n'), __file__, 'exec'))" install
--single-version-externally-managed --record
c:\docume~1\heather\locals~1\temp\pip-pezwil-record\install-record.txt:
running install
running build
running build_py
creating build
creating build\lib.win32-2.7
creating build\lib.win32-2.7\pywcs
copying lib\pywcs.py -> build\lib.win32-2.7\pywcs
copying lib\svn_version.py -> build\lib.win32-2.7\pywcs
copying lib\_docutil.py -> build\lib.win32-2.7\pywcs
copying lib\__init__.py -> build\lib.win32-2.7\pywcs
creating build\lib.win32-2.7\pywcs\tests
copying lib\tests\test.py -> build\lib.win32-2.7\pywcs\tests
copying lib\tests\__init__.py -> build\lib.win32-2.7\pywcs\tests
running build_ext
building 'pywcs._pywcs' extension
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
creating build\temp.win32-2.7\Release\wcslib
creating build\temp.win32-2.7\Release\wcslib\C
creating build\temp.win32-2.7\Release\wcslib\C\flexed
creating build\temp.win32-2.7\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:\Python27\lib\site-packages\numpy\core\include -I.\wcslib\C -Iwcslib\C
-I.\src -IC:\Python27\include -IC:\Python27\PC /Tcwcslib\C\flexed/wcsbth.c
/Fobuild\temp.win32-2.7\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
----------------------------------------
Command C:\Python27\python.exe -c "import
setuptools;__file__='C:\\build\\pywcs\\setup.py';exec(compile(open(__file__).read().replace('\r\n',
'\n'), __file__, '
exec'))" install --single-version-externally-managed --record
c:\docume~1\heather\locals~1\temp\pip-pezwil-record\install-record.txt
failed with error code 1
Storing complete log in C:\Documents and Settings\heather\Application
Data\pip\pip.log
I then went back and attempted to install using the tar.gz distribution:
C:\heather\downloads\python\pywcs-1.10-4.7>c:\Python27\python.exe setup.py
install
running install
running build
running build_py
copying lib\svn_version.py -> build\lib.win32-2.7\pywcs
running build_ext
building 'pywcs._pywcs' extension
c:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox
/MD /W
3 /GS- /DNDEBUG -DECHO -DWCSTRIG_MACRO -DPYWCS_BUILD -D_GNU_SOURCE -DNDEBUG
-DYY
_NO_UNISTD_H -D_CRT_SECURE_NO_WARNINGS -UDEBUG
-Ic:\Python27\lib\site-packages\numpy\core\include -I.\wcslib\C -Iwcslib\C
-I.\src -Ic:\Python27\include -Ic:\Python27\PC /Tcwcslib\C\flexed/wcsbth.c
/Fobuild\temp.win32-2.7\Release\wcslib\C\flexed/wcsbth.obj
wcsbth.c
.\wcslib\C\wcs.h(1396) : warning C4030: first formal parameter list longer
thanthe 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
Has anyone else seen this behavior and is there a workaround?
Thanks,
Heather
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20110628/ba75f502/attachment.html>
More information about the AstroPy
mailing list