Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

how to call python code in talend

Hi All,

 

how to call python code in talend? Any Idea?

 

Thanks

Shree

Labels (3)
5 Replies
Anonymous
Not applicable
Author

You can use a tSystem component to do that, as long as its a script on the filesystem.

Anonymous
Not applicable
Author

Hi,

 

Can you show me screen shot how to call python script in window machine.

 

Thanks

Shree

Anonymous
Not applicable
Author

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

Anonymous
Not applicable
Author

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.

 

AnilCharanPabba
Contributor
Contributor

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"