[Ifeffit] python 2.6 wrapper

Carmelo Prestipino carmelo.prestipino at esrf.fr
Mon Nov 9 07:19:42 CST 2009


Dear Matt and Carlo
I was speaking about windows, sorry for the imprecision.
I tested today the file sent by Matt, on my computer all seems to work fine
with Python 2.6.
Cheers
Carmelo






Quoting ifeffit-request at millenia.cars.aps.anl.gov:

> Send Ifeffit mailing list submissions to
> 	ifeffit at millenia.cars.aps.anl.gov
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
> or, via email, send a message with subject or body 'help' to
> 	ifeffit-request at millenia.cars.aps.anl.gov
>
> You can reach the person managing the list at
> 	ifeffit-owner at millenia.cars.aps.anl.gov
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Ifeffit digest..."
>
>
> Today's Topics:
>
>    1. python 2.6 wrapper (Carmelo Prestipino)
>    2. Re: python 2.6 wrapper (Carlo Segre)
>    3. Re: python 2.6 wrapper (Matt Newville)
>    4. Re: Ifeffit (Matt Newville)
>    5. Re: Ifeffit (Cl?ment Levard)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 06 Nov 2009 10:50:25 +0100
> From: Carmelo Prestipino <carmelo.prestipino at esrf.fr>
> To: ifeffit at millenia.cars.aps.anl.gov
> Subject: [Ifeffit] python 2.6 wrapper
> Message-ID: <20091106105025.gifreaxeogoc440g at 160.103.2.152>
> Content-Type: text/plain;	charset=ISO-8859-1;	DelSp="Yes";
> 	format="flowed"
>
> Dear All
> I upgraded my my python version on 2.6, I was wondering if is it
> available a new Ifeffit wrapper for this version?
> Best regards
> Carmelo
>
> --
>
> ---------------------------------------
> Dr. Carmelo Prestipino
> European Synchrotron Radiation Facility
> BP220, 38043 Grenoble Cedex,
> FRANCE
> Tel: +33 (0)4 38 88 19 29
> ---------------------------------------
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 6 Nov 2009 07:46:55 -0600 (CST)
> From: Carlo Segre <segre at iit.edu>
> To: XAFS Analysis using Ifeffit <ifeffit at millenia.cars.aps.anl.gov>
> Subject: Re: [Ifeffit] python 2.6 wrapper
> Message-ID: <alpine.DEB.1.10.0911060746230.3348 at arsenide.iit.edu>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
>
> What is your operating system?  The gifeffit progrm should work fine with
> most versions of python.
>
> Carlo
>
>
> On Fri, 6 Nov 2009, Carmelo Prestipino wrote:
>
>> Dear All
>> I upgraded my my python version on 2.6, I was wondering if is it available a
>> new Ifeffit wrapper for this version?
>> Best regards
>> Carmelo
>>
>>
>
> --
> Carlo U. Segre -- Professor of Physics
> Associate Dean for Graduate Admissions, Graduate College
> Illinois Institute of Technology
> Voice: 312.567.3498            Fax: 312.567.3494
> segre at iit.edu   http://www.iit.edu/~segre   segre at debian.org
>
>
> ------------------------------
>
> Message: 3
> Date: Fri, 6 Nov 2009 10:46:46 -0600
> From: Matt Newville <newville at cars.uchicago.edu>
> To: XAFS Analysis using Ifeffit <ifeffit at millenia.cars.aps.anl.gov>
> Subject: Re: [Ifeffit] python 2.6 wrapper
> Message-ID:
> 	<b8522e3d0911060846t6f7bea35j83dbff53c6c580d2 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Carmelo, Carlo,
>
> As Carlo says, on linux there should be no problem with the older
> build system....  I'm using python2.6 and Ifeffit on linux.
>
> So, I'll assume you're asking about Windows.   I do not yet have an
> executable installer for Python2.6 on Windows.  But, if you're brave,
> I have something for you to try.  In fact, just this past week, as
> part of a move to a new Windows build system  (see
> http://cars9.uchicago.edu/ifeffit/MingwBuild), I've moved from using a
> C extension for Python to using Python's ctypes library.  This means
> that the Ifeffit-Python interface is in pure Python and uses the DLL
> directly, which is much better than the previous situation.
>
> I've tested this with python 2.6 and it works for me on both Windows
> and linux, with very minor differences between them.   The result
> (Ifefffit.py attached) should be viewed as "beta testing" stage -- If
> you try it out, I'd love to hear about any issues you have with it.  I
> don't have a nice installer for this, but you should be able to put
> this in any folder that Python will find it.  If you don't have
> Ifeffit installed to C:\Program Files\Ifeffit, you may need to alter
> the top of the script (the set_environ function).
>
> Cheers,
>
> --Matt
>
>
>
>
> On Fri, Nov 6, 2009 at 3:50 AM, Carmelo Prestipino
> <carmelo.prestipino at esrf.fr> wrote:
>> Dear All
>> I upgraded my my python version on 2.6, I was wondering if is it available a
>> new Ifeffit wrapper for this version?
>> Best regards
>> Carmelo
>>
>> --
>>
>> ---------------------------------------
>> Dr. Carmelo Prestipino
>> European Synchrotron Radiation Facility
>> BP220, 38043 Grenoble Cedex,
>> FRANCE
>> Tel: +33 (0)4 38 88 19 29
>> ---------------------------------------
>> _______________________________________________
>> Ifeffit mailing list
>> Ifeffit at millenia.cars.aps.anl.gov
>> http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
>>
>>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: Ifeffit.py
> Type: application/octet-stream
> Size: 9195 bytes
> Desc: not available
> URL:   
> <http://millenia.cars.aps.anl.gov/pipermail/ifeffit/attachments/20091106/2b2a4abf/attachment-0001.obj>
>
> ------------------------------
>
> Message: 4
> Date: Fri, 6 Nov 2009 11:07:58 -0600
> From: Matt Newville <newville at cars.uchicago.edu>
> To: Cl?ment Levard <clevard at stanford.edu>
> Cc: XAFS Analysis using Ifeffit <ifeffit at millenia.cars.aps.anl.gov>
> Subject: Re: [Ifeffit] Ifeffit
> Message-ID:
> 	<b8522e3d0911060907s21b1184fjc03101b988709e3b at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi Clement,
>
> I don't have any experience with the windows emulator on Mac OS X, and
> have only heard reports that it does work.  When running atoms.exe on
> the Windows emulator on Mac OS X, you see:
>
>   Running "C:\Program Files\Ifeffit\bin\atoms.exe" MetaCinn.inp
>
>   '\\.host\Shared Folders\Desktop'
>   CMD.EXE was started with the above path as the current directory.
>   UNC paths are not supported.  Defaulting to Windows directory.
>   MetaCinn.inp: not a valid input file for Atoms.
>
> My guesses are:
>   a) you want to run atoms in a directory without a space in the name
>   b) you want to be sure that the file is has Windows line endings,
>      not Mac OS line endings.
>
> Those are guesses, so I'm also CC'ing this to the Ifeffit mailing
> list, as someone there may have experience with this issue.
>
> --Matt
>
>
> 2009/11/5 Cl?ment Levard <clevard at stanford.edu>
>>
>> Hi Matt,
>> I am a new postdoc in Gordon Brown's group in Stanford and would   
>> like to use you package for XAS analysis.
>> I am working on Mac, have installed a Windows Emulator. Most of the  
>>  programs works fine (Sixpack, Athena, Artemis) But I have troubles  
>>  running Atoms and Feff6l.
>> Please find in attachment the message I get when I try to run atoms  
>>  for example. note that the exact same input file works fine on a   
>> Windows computer. I have the same kind of error message while   
>> running feff6l.
>> Do you have an idea of what could be the problem ?
>> thanks a lot for your help!
>>
>> --
>> Cl?ment Levard
>> Postdoctoral Scholar
>> Cell # : 650-521-7096
>> Mailing address:
>> Geological & Environmental Sciences
>> Green Earth Sciences
>> 367 Panama Street, room 305
>> Stanford University
>> Stanford, CA 94305-2115
>
>
> ------------------------------
>
> Message: 5
> Date: Fri, 6 Nov 2009 09:29:45 -0800
> From: Cl?ment Levard <clevard at stanford.edu>
> To: Matt Newville <newville at cars.uchicago.edu>
> Cc: XAFS Analysis using Ifeffit <ifeffit at millenia.cars.aps.anl.gov>
> Subject: Re: [Ifeffit] Ifeffit
> Message-ID: <2FB65C67-DE5C-42A5-8FEF-D6467B6B0653 at stanford.edu>
> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed";
> 	DelSp="yes"
>
> Hi Matt,
>
> Thanks for your advices, my problem is resolved.
> The reason was that my input file was located on the desktop with the
> following path: \\.host\Shared Folders\Desktop
> I just moved it to the following folder : C:\Program Files\Ifeffit\bin
> and it works fine!
>
> Thanks a lot!
>
> Best
>
> Clement
>
>
> Le 6 nov. 09 ? 09:07, Matt Newville a ?crit :
>
>> Hi Clement,
>>
>> I don't have any experience with the windows emulator on Mac OS X, and
>> have only heard reports that it does work.  When running atoms.exe on
>> the Windows emulator on Mac OS X, you see:
>>
>>  Running "C:\Program Files\Ifeffit\bin\atoms.exe" MetaCinn.inp
>>
>>  '\\.host\Shared Folders\Desktop'
>>  CMD.EXE was started with the above path as the current directory.
>>  UNC paths are not supported.  Defaulting to Windows directory.
>>  MetaCinn.inp: not a valid input file for Atoms.
>>
>> My guesses are:
>>  a) you want to run atoms in a directory without a space in the name
>>  b) you want to be sure that the file is has Windows line endings,
>>     not Mac OS line endings.
>>
>> Those are guesses, so I'm also CC'ing this to the Ifeffit mailing
>> list, as someone there may have experience with this issue.
>>
>> --Matt
>>
>>
>> 2009/11/5 Cl?ment Levard <clevard at stanford.edu>
>>>
>>> Hi Matt,
>>> I am a new postdoc in Gordon Brown's group in Stanford and would
>>> like to use you package for XAS analysis.
>>> I am working on Mac, have installed a Windows Emulator. Most of the
>>> programs works fine (Sixpack, Athena, Artemis) But I have troubles
>>> running Atoms and Feff6l.
>>> Please find in attachment the message I get when I try to run atoms
>>> for example. note that the exact same input file works fine on a
>>> Windows computer. I have the same kind of error message while
>>> running feff6l.
>>> Do you have an idea of what could be the problem ?
>>> thanks a lot for your help!
>>>
>>> --
>>> Cl?ment Levard
>>> Postdoctoral Scholar
>>> Cell # : 650-521-7096
>>> Mailing address:
>>> Geological & Environmental Sciences
>>> Green Earth Sciences
>>> 367 Panama Street, room 305
>>> Stanford University
>>> Stanford, CA 94305-2115
>
> --
> Cl?ment Levard
> Postdoctoral Scholar
> Cell # : 650-521-7096
>
> Mailing address:
> Geological & Environmental Sciences
> Green Earth Sciences
> 367 Panama Street, room 305
> Stanford University
> Stanford, CA 94305-2115
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:   
> <http://millenia.cars.aps.anl.gov/pipermail/ifeffit/attachments/20091106/f43dbc5d/attachment.htm>
>
> ------------------------------
>
> _______________________________________________
> Ifeffit mailing list
> Ifeffit at millenia.cars.aps.anl.gov
> http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
>
>
> End of Ifeffit Digest, Vol 81, Issue 4
> **************************************
>
>





More information about the Ifeffit mailing list