QuantumATK Forum

QuantumATK => Scripts, Tutorials and Applications => Topic started by: Aun on February 20, 2019, 14:08

Title: How to run 2017 version py file
Post by: Aun on February 20, 2019, 14:08
  Both 2017 and 2018 versions are installed on same sever machine(linux). Is it possible to run 2017 version py  file?
Title: Re: How to run 2017 version py file
Post by: Ulrik G. Vej-Hansen on February 20, 2019, 15:43
Yes, you can just call atkpython from the 2017 installation directory.
Title: Re: How to run 2017 version py file
Post by: Aun on February 21, 2019, 06:24
Thank.

Let me ask one more question.
I use 2016 version in my PC(Windows) and 2017 and 2018 are installed in server machine (linux).
My scripts py file is written with 2016 version and it does not work with 2018.  Syntax error is occurred as follow.
  File "GrOAl_pre.py", line 1
    +------------------------------------------------------------------------------+
                                                                                   ^
SyntaxError: invalid syntax
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0

 Is it possible to run this py file with server machine  (2018 version) to read with 2016 version?
Script is attached.
Title: Re: How to run 2017 version py file
Post by: Ulrik G. Vej-Hansen on February 21, 2019, 10:03
It looks like a syntax error from Python itself, and this has not changed between those versions. Also, I can run it without any syntax errors, so it seems to be an issue with the way you run it on the cluster.
Title: Re: How to run 2017 version py file
Post by: Aun on February 22, 2019, 04:45
I found out the error and it is solved. It was not Atk issue.
Thanks.