@Joji (Joji P Cherian) posted a new topic, subject "Python Activity". It read:

   I wrote translator function using googletrans just to check the python activities in uipath ,however it is not giving the correct output.  
    Let me know if I am doing something wrong in uipath since in my pycharm it is perfectly working.Main.xaml (7.8 KB)

Then @HareeshMR (Hareesh Madasi) said

    Hi @Joji,
    
    As you have static inputs to the function, you can use Run Python Script activity and i tried with your code. Its working.
    
    Will try to debug Load Python Script activity soon

Then @Joji (Joji P Cherian) said

    @ HareeshMR  
    The script is executing perfectly but there is no output in Korean language neither using Python Script Activity or by invoking the Method.  
    Can you share the xaml,if you are getting the output ?

Then @HareeshMR (Hareesh Madasi) said

    Hi @Joji,
    
    You are using print in the code, try using return instead and you will get the output from the code. Then try to print it in the message box after Get Python Object activity…

After which, @Joji (Joji P Cherian) added

    It worked.  
    Thank you so much

Then @system (system) said

    This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.


{'source': 'discourse', 'url': 'https://forum.uipath.com/t/python-activity/125030', 'title': 'Python Activity', 'views': 617, 'has_accepted_answer': True, 'word_count': 184, 'like_count': 2, 'reply_count': 2, 'participant_count': 2, 'posts': 6, 'tags': 'studio', 'author': '@Joji (Joji P Cherian)', 'participants': '@Joji (Joji P Cherian), @HareeshMR (Hareesh Madasi), @system (system)', 'image_url': [None], 'created_at': '2019-06-13T15:09:25.657Z', 'last_posted_at': '2019-06-18T07:31:30.695Z'}