COSIMA / make_diag_table

Python script to generate MOM diag_table
1 stars 2 forks source link

error when executed as job on Gadi #4

Closed hakaseh closed 2 years ago

hakaseh commented 2 years ago

To implement this (https://github.com/COSIMA/access-om2/issues/241), I execute make_diag_table.py at the beginning of each run defined in config.yaml (https://github.com/COSIMA/access-om2/issues/241#issuecomment-982092756). However, I get the following error and make_diag_table.py is not executed during the run:

=== ERROR ===
The use of the #!/usr/bin/env python interpreter line in python scripts
has been deprecated.

Please modify this script:
/scratch/v45/hh0162/access-om2-cycle4/control/test_1deg_jra55_iamip2_exc/ocean/make_diag_table.py

To use either #!/usr/bin/env python3 or #!/usr/bin/env python2
depending on which version of python you require
Alternatively, if you are unable to modify this script
You can load the python2-as-python or python3-as-python
modules depending on which version of python you require
Currently Loaded Modulefiles:
 1) openmpi/4.1.2(default)   2) pbs

I suggest to add 3 at the end of #!/usr/bin/env python.

aekiss commented 2 years ago

Does it run if you use #!/usr/bin/env python3 ?

hakaseh commented 2 years ago

yes it does.

aekiss commented 2 years ago

Closing - I've fixed this everywhere I can think of