[AstroPy] AstroPy Digest, Vol 65, Issue 3

Eli Bressert ebressert@cfa.harvard....
Thu Jan 5 13:09:17 CST 2012


Hi Erik,

I'll be at AAS as well, so I would be interested in meeting up over
lunch time as well.

Cheers,
Eli


On Thu, Jan 5, 2012 at 7:00 PM,  <astropy-request@scipy.org> wrote:
> Send AstroPy mailing list submissions to
>        astropy@scipy.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://mail.scipy.org/mailman/listinfo/astropy
> or, via email, send a message with subject or body 'help' to
>        astropy-request@scipy.org
>
> You can reach the person managing the list at
>        astropy-owner@scipy.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of AstroPy digest..."
>
>
> Today's Topics:
>
>   1. Astropy at AAS? (Erik Tollerud)
>   2. Re: pywcs 1.10-4.7 install failure on Microsoft Windows
>      (Rahul Patel)
>   3. Re: Astropy at AAS? (Andrew Ptak)
>   4. Re: Astropy at AAS? (Steve Crawford)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 4 Jan 2012 15:22:59 -0800
> From: Erik Tollerud <erik.tollerud@gmail.com>
> Subject: [AstroPy] Astropy at AAS?
> To: astropy@scipy.org
> Message-ID:
>        <CAARXUwUwGJQDdtFjuNp_5v2s5Zq5q2nRM-nZHzn=hW+e2oVJOQ@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hello all,
>
> We ended up not scheduling anything official for this AAS, but I'm
> curious if there's anyone who would like to meet to ask
> questions/comments about Astropy at next week's AAS meeting?  If
> there's enough interest we could try to have an informal meeting over
> a lunch or something.
>
> --
> Erik Tollerud
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 4 Jan 2012 20:20:41 -0500
> From: Rahul Patel <rahpatel@ic.sunysb.edu>
> Subject: Re: [AstroPy] pywcs 1.10-4.7 install failure on Microsoft
>        Windows
> To: Michael Droettboom <mdroe@stsci.edu>
> Cc: astropy@scipy.org
> Message-ID:
>        <CAMe0V1Z5E=cLHS8y9_ZtmQZ2FhR-ezKg4i++yOh3jJYMkr0P7g@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> So, I added the last two "oldnames" lines to the defsetup.py module, just
> as you said Mike. There is a "win32" check for sys so I added that under
> there. After it finished, I was able to import pywcs without any errors. I
> haven't tested it or anything as I'm still learning all this, but I imagine
> a successful import into Ipython indicates that it installed correctly.
>
> -----------------------------------------------------------------
> Rahul I. Patel
>
> Rahul.Patel.1@StonyBrook.edu <Rahul.Patel.1@stonybrook.edu>
> Department of Physics and Astronomy
> State University of New York at Stony Brook
> -----------------------------------------------------------------
>
>
>
> On Tue, Jan 3, 2012 at 2:15 PM, Michael Droettboom <mdroe@stsci.edu> wrote:
>
>> Ok.  I'm in the process of getting a Visual Studio environment set up
>> here and will let you know what I discover.
>>
>> Mike
>>
>> On 01/03/2012 12:54 PM, Jim Vickroy wrote:
>> > On 1/3/2012 10:22 AM, Michael Droettboom wrote:
>> >> Hmm...  Do you have any luck if you remove this from defsetup.py?
>> >>
>> >> if sys.platform in ('win32', 'cygwin'):
>> >>        h_file.write("""
>> >> #define wcsset wcsset_
>> >> """)
>> >>
>> >> Mike
>> > Unfortunately, the same error trace occurs if the above line is
>> > removed.  -- jv
>> >
>> >
>> >> On 01/03/2012 11:32 AM, Jim Vickroy wrote:
>> >>> On 1/3/2012 8:30 AM, Michael Droettboom wrote:
>> >>>> On 01/03/2012 09:21 AM, Jim Vickroy wrote:
>> >>>>> On 1/3/2012 6:33 AM, Michael Droettboom wrote:
>> >>>>>> My apologies that this isn't working for you -- I don't have access
>> to
>> >>>>>> Visual Studio 9.0 to test with, so these sorts of things can fall
>> >>>>>> through the cracks.
>> >>>>>>
>> >>>>>> Mark is right that the old solution involved patching wcslib before
>> >>>>>> shipping it with pywcs.
>> >>>>>>
>> >>>>>> However, as of version 1.10 (which you are using), the solution was
>> to add:
>> >>>>>>
>> >>>>>>           #define wcsset wcsset_
>> >>>>>>
>> >>>>>> on Windows.  This works with the mingw32/cygwin compiler, but
>> apparently
>> >>>>>> failing on the Microsoft compiler.
>> >>>>>>
>> >>>>>> There is an even newer solution in pywcs SVN which defines the
>> following
>> >>>>>> on Windows.  This I believe to work on the Microsoft compilers
>> based on
>> >>>>>> the report of another user:
>> >>>>>>
>> >>>>>> if sys.platform == 'win32':
>> >>>>>>            define_macros.append(('YY_NO_UNISTD_H', None))
>> >>>>>>            define_macros.append(('_CRT_SECURE_NO_WARNINGS', None))
>> >>>>>>            define_macros.append(('_NO_OLDNAMES', None)) # for
>> mingw32
>> >>>>>>            define_macros.append(('NO_OLDNAMES', None)) # for mingw64
>> >>>>>>
>> >>>>>> You can either splice this into your current copy of setup.py, or
>> build
>> >>>>>> from SVN.  Note that building from SVN currently requires having
>> parts
>> >>>>>> of stsci_python installed (notable
>> stsci.tools.stsci_distutils_hack).
>> >>>>>>
>> >>>>>> Mike
>> >>>>> Thanks, Mike.
>> >>>>>
>> >>>>> Could you elaborate on the above patch?  Do I need to import
>> something
>> >>>>> other than sys?  Where is define_macros defined?
>> >>>> Of course -- first day back and I'm whipping through e-mail too
>> quickly ;)
>> >>>>
>> >>>> This goes in defsetup.py -- there is already an "if sys.platform ==
>> >>>> 'win32'" clause -- you would just need to add the "OLDNAMES" lines to
>> it.
>> >>>>
>> >>>> Mike
>> >>>> _______________________________________________
>> >>>> AstroPy mailing list
>> >>>> AstroPy@scipy.org
>> >>>> http://mail.scipy.org/mailman/listinfo/astropy
>> >>> I added the OLDNAMES lines as above and here is the result:
>> >>>
>> >>> C:\Projects\pywcs-1.10-4.7>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:\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
>> >>> -D_NO_OLDNAMES -DNO_OLDNAMES -U
>> >>> DEBUG -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
>> >>>
>> >>> C:\Projects\pywcs-1.10-4.7>
>> >>>
>> >>>
>> >>>
>> >>> _______________________________________________
>> >>> AstroPy mailing list
>> >>> AstroPy@scipy.org
>> >>> http://mail.scipy.org/mailman/listinfo/astropy
>> >> _______________________________________________
>> >> AstroPy mailing list
>> >> AstroPy@scipy.org
>> >> http://mail.scipy.org/mailman/listinfo/astropy
>> > _______________________________________________
>> > AstroPy mailing list
>> > AstroPy@scipy.org
>> > http://mail.scipy.org/mailman/listinfo/astropy
>>
>> _______________________________________________
>> AstroPy mailing list
>> AstroPy@scipy.org
>> http://mail.scipy.org/mailman/listinfo/astropy
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://mail.scipy.org/pipermail/astropy/attachments/20120104/ccb6428e/attachment-0001.html
>
> ------------------------------
>
> Message: 3
> Date: Wed, 4 Jan 2012 22:21:23 -0500
> From: Andrew Ptak <andrew.f.ptak@nasa.gov>
> Subject: Re: [AstroPy] Astropy at AAS?
> To: Erik Tollerud <erik.tollerud@gmail.com>
> Cc: "astropy@scipy.org" <astropy@scipy.org>
> Message-ID: <FEF7522E-1E3F-4767-8E92-5BA05EB1ADCB@nasa.gov>
> Content-Type: text/plain; charset=us-ascii
>
> Hello Erik,
> I will be at the AAS meeting and would be very interested in chatting about astropy over lunch.
>
> Andy Ptak
>
> On Jan 4, 2012, at 6:22 PM, Erik Tollerud wrote:
>
>> Hello all,
>>
>> We ended up not scheduling anything official for this AAS, but I'm
>> curious if there's anyone who would like to meet to ask
>> questions/comments about Astropy at next week's AAS meeting?  If
>> there's enough interest we could try to have an informal meeting over
>> a lunch or something.
>>
>> --
>> Erik Tollerud
>> _______________________________________________
>> AstroPy mailing list
>> AstroPy@scipy.org
>> http://mail.scipy.org/mailman/listinfo/astropy
>
> Andrew Ptak
> Research Astrophysicist
> NASA/GSFC
> X-ray Astrophysics Lab Code 662
> Building 34 room S289
> andrew.f.ptak@nasa.gov
> office: 301-286-1154
> cell: 443-415-1495
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Thu, 05 Jan 2012 05:35:24 +0200 (SAST)
> From: Steve Crawford <crawford@saao.ac.za>
> Subject: Re: [AstroPy] Astropy at AAS?
> To: Erik Tollerud <erik.tollerud@gmail.com>
> Cc: astropy@scipy.org
> Message-ID: <067e9b72-53fd-40ca-9604-063c0d55fdb8@mailcape>
> Content-Type: text/plain; charset=utf-8
>
>
> I'll be there at the AAS and happy to meet up with anyone else there.
>
> ----- Original Message -----
>> From: "Erik Tollerud" <erik.tollerud@gmail.com>
>> To: astropy@scipy.org
>> Sent: Wednesday, 4 January, 2012 6:22:59 PM
>> Subject: [AstroPy] Astropy at AAS?
>>
>> Hello all,
>>
>> We ended up not scheduling anything official for this AAS, but I'm
>> curious if there's anyone who would like to meet to ask
>> questions/comments about Astropy at next week's AAS meeting?  If
>> there's enough interest we could try to have an informal meeting over
>> a lunch or something.
>>
>> --
>> Erik Tollerud
>> _______________________________________________
>> AstroPy mailing list
>> AstroPy@scipy.org
>> http://mail.scipy.org/mailman/listinfo/astropy
>>
>
>
> ------------------------------
>
> _______________________________________________
> AstroPy mailing list
> AstroPy@scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy
>
>
> End of AstroPy Digest, Vol 65, Issue 3
> **************************************
>


More information about the AstroPy mailing list