Author Topic: How to run 2017 version py file  (Read 128 times)

0 Members and 1 Guest are viewing this topic.

Offline Aun

  • New ATK user
  • *
  • Posts: 9
  • Country: jp
  • Reputation: 0
    • View Profile
How to run 2017 version py file
« 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?

Offline Ulrik G. Vej-Hansen

  • QuantumWise Staff
  • Supreme ATK Wizard
  • *****
  • Posts: 412
  • Country: dk
  • Reputation: 7
    • View Profile
Re: How to run 2017 version py file
« Reply #1 on: February 20, 2019, 15:43 »
Yes, you can just call atkpython from the 2017 installation directory.

Offline Aun

  • New ATK user
  • *
  • Posts: 9
  • Country: jp
  • Reputation: 0
    • View Profile
Re: How to run 2017 version py file
« Reply #2 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.

Offline Ulrik G. Vej-Hansen

  • QuantumWise Staff
  • Supreme ATK Wizard
  • *****
  • Posts: 412
  • Country: dk
  • Reputation: 7
    • View Profile
Re: How to run 2017 version py file
« Reply #3 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.

Offline Aun

  • New ATK user
  • *
  • Posts: 9
  • Country: jp
  • Reputation: 0
    • View Profile
Re: How to run 2017 version py file
« Reply #4 on: February 22, 2019, 04:45 »
I found out the error and it is solved. It was not Atk issue.
Thanks.