Calling a remote python process from Talend

One Star

Calling a remote python process from Talend

I have Python running on a different server than Talend. Can I call a Python process running on a remote machine from Talend? and How?
Thank you for your help.
Arvind.
Moderator

Re: Calling a remote python process from Talend

Hi,
Have you tried remote command in component tSystem to call your remote python process?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Calling a remote python process from Talend

Actually No. Let me try that.
Moderator

Re: Calling a remote python process from Talend

Hi,
Feel free to let us know if it doesn't work.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Calling a remote python process from Talend

Actually it made sense to install Python on the same server as Talend and use it instead. The python script I run is fine when it is run standalone. However it gives an error when called from Talend. Any idea why it is failing?
Here is the error that I got:
File "/usr/sisense/test.py", line 13
    names = {i for i in db_user_list}
                                 ^
SyntaxError: invalid syntax
Here is the test script that I am using:
db_user_list=
names = {i for i in db_user_list}
print names

 
One Star

Re: Calling a remote python process from Talend

anyone?
Community Manager

Re: Calling a remote python process from Talend

Hi akandaswamy
I believe that many users have successfully called a python script with tSystem component.
Can you try to test if it is able to execute your python script from command prompt? Can you show us the command you set on tSystem component?
Regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Why Companies Move to the Cloud: 7 Success Stories

Learn how and why companies are moving to the Cloud

Read Now