Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
how to call python code in talend? Any Idea?
Thanks
Shree
You can use a tSystem component to do that, as long as its a script on the filesystem.
Hi,
Can you show me screen shot how to call python script in window machine.
Thanks
Shree
Hi,
Do you run python script? If so, please make sure that you can execute your python script successfully from command prompt.
Best regards
Sabrina
I am trying to do the same but not able to run python code from talend but not able to do that!
Hello, I am trying to do call a python script from tSystem component but not able to do it successfully:
I am getting different kinds of errors as I am changing the script path in Command field:
Command: “python \ C:\\Users\\user\\PycharmProjects\\AWS_Projects\\S3_Copy_to_other_bucket.py”
Error: Invalid escape sequence
Command: “python \\ C:\\Users\\user\\PycharmProjects\\AWS_Projects\\S3_Copy_to_other_bucket.py”
Error: C:\Users\user\AppData\Local\Continuum\anaconda3\python.exe: can’t find ‘__main__’ module in ‘\\’
Command: “python C:\\Users\\user\\PycharmProjects\\AWS_Projects\\S3_Copy_to_other_bucket.py”
Error: File “C:\Users\agarg\PycharmProjects\AWS_Projects-ART\S3_Copy_to_other_bucket.py”, line 1, in
import boto3
ModuleNotFoundError: No module named ‘boto3’
Please let me know if any of you faced similar issues while you were executing this.
hi
I was able to run python script successfully with below command.
"C:\\Users\\LLfund-VM2\\AppData\\Local\\Programs\\Python\\Python37\\python C:\\Users\\LLfund-VM2\\AppData\\Local\\Programs\\Python\\Python37\\archive\\col_3.py"