Re: [Phonopy-users] syntax error with phonopy-1.8.5.1
Brought to you by:
atztogo
|
From: Atsushi T. <atz...@gm...> - 2014-10-21 00:17:58
|
Hi,
The 'with' statement is new in python version 2.5. But clearly this
line with the 'with' statement is unnecessary.
Currently phonopy supports python 2.5 or later. Could you use those
python versions?
Togo
On Tue, Oct 21, 2014 at 3:11 AM, Zamaan Raza <zam...@gm...> wrote:
> Hi,
>
> the "with" keyword is Python 3 syntax.
>
> Zamaan
>
> On Mon, Oct 20, 2014 at 7:59 PM, <san...@wi...> wrote:
>>
>> I’m facing following issue with phonopy-1.8.5.1.
>>
>>
>>
>> phonopy -d --dim="2 2 3"
>> File "/opt/apps/phonopy-1.8.5.1/bin/phonopy", line 789
>> with open("BORN") as f:
>> ^
>> SyntaxError: invalid syntax
>>
>>
>>
>> Is this a bug with application?
>>
>>
>>
>> The system environment is:
>>
>>
>>
>> Version of Python = Python 2.4.3
>>
>>
>>
>> Versions of Dependencies:
>>
>>
>>
>> numpy-1.2.1-2.el5
>>
>> python-matplotlib-0.99.1.2-1.el5
>>
>> python-yaml-3.09-3.el5.rf
>>
>> libyaml-0.1.2-7.el5
>>
>>
>>
>> Can anybody on the list help us to resolving this issue?
>>
>>
>>
>>
>>
>> --
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Comprehensive Server Monitoring with Site24x7.
>> Monitor 10 servers for $9/Month.
>> Get alerted through email, SMS, voice calls or mobile push notifications.
>> Take corrective actions from your mobile device.
>> http://p.sf.net/sfu/Zoho
>> _______________________________________________
>> Phonopy-users mailing list
>> Pho...@li...
>> https://lists.sourceforge.net/lists/listinfo/phonopy-users
>>
>
>
>
> --
> Zamaan Raza
> Department of Physics, Chemistry and Biology (IFM)
> Theoretical Physics
> Linköping University
> SE-581 83 Linköping, Sweden
> tel: +46 (0) 70 089 69 45
>
>
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> _______________________________________________
> Phonopy-users mailing list
> Pho...@li...
> https://lists.sourceforge.net/lists/listinfo/phonopy-users
>
--
Atsushi Togo
http://atztogo.github.com/
atz...@gm...
|