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