error while running python script using AutoSys

856 views Asked by At

I am running a python script using AutoSys but it is giving error. The problem lies in the version of python, Instead of calling python 3.8 auto sys is calling python 2.7 How can I change the path of python in autosys?

1

There are 1 answers

0
Piyush On BEST ANSWER

Options:

Step1: Check the python version on the host. Below would confirm the path of the respective python binary.

bash-3.2$ which python
/usr/bin/python
bash-3.2$ which python3
/Library/Frameworks/Python.framework/Versions/3.9/bin/python3

Step2: Check Autosys job attribute to use python for 2.x and python3 for 3.x

update_job: YourAutosysJobName
command: python3 /absolute_path/python_script.py

Happy to help !!