Skip to main content
Cadet | Tier 2
August 29, 2022
Solved

Failed in Python execution

  • August 29, 2022
  • 3 replies
  • 606 views

I am trying call python script from A360 community edition. I am using Python package to call python exteral script.

When I am execution bot it is thowing error "Failed in Python executopm"

 

I tried same script on command prompt and it is giving me expected output.

 

I cheked "Bot_Launcher.log" file and found exception is generating.

 

Caused by: java.io.IOException: The pipe is being closed

at java.io.FileOutputStream.writeBytes(Native Method) ~[?:?]

at java.io.FileOutputStream.write(Unknown Source) ~[?:?]

at java.io.BufferedOutputStream.flushBuffer(Unknown Source) ~[?:?]

at java.io.BufferedOutputStream.flush(Unknown Source) ~[?:?]

at sun.nio.cs.StreamEncoder.implFlush(Unknown Source) ~[?:?]

at sun.nio.cs.StreamEncoder.flush(Unknown Source) ~[?:?]

at java.io.OutputStreamWriter.flush(Unknown Source) ~[?:?]

at java.io.BufferedWriter.flush(Unknown Source) ~[?:?]

at com.automationanywhere.synchronous.messenger.StandardInputOutputMessenger.send(StandardInputOutputMessenger.java:72) ~[bot-launcher.jar:?]

at com.automationanywhere.externalfunction.ExternalFunctionImpl.callFunction(ExternalFunctionImpl.java:63) ~[bot-launcher.jar:?]

at com.automationanywhere.externalfunction.ExternalEnvironmentImpl.callFunction(ExternalEnvironmentImpl.java:95) ~[bot-launcher.jar:?]

at com.automationanywhere.python.commands.ExecuteFunction.execute(ExecuteFunction.java:86) ~[bot-command-python-2.12.0-20220509-062148.jar:?]

... 11 more

 

If any one has solution please do needful.

 

Thanks in Advance.

Parimal

    Best answer by Automation Anywhere Team

    @Parimal Gujarathi​ : Please follow the below KB and see if that resolves your issue

     

    https://apeople.automationanywhere.com/s/article/Python-script-fails-to-save-file

     

    if you are still facing an issue then please create a support case

     

    How to create a support case :

    https://apeople.automationanywhere.com/s/article/How-to-create-a-support-case-in-service-cloud

     

    if you don't have access to the above link, email the AA Support team "apeopleopsteam@automationanywhere.com" to get access.

    3 replies

    Automation Anywhere Team
    October 31, 2022

    @Parimal Gujarathi​ : Please follow the below KB and see if that resolves your issue

     

    https://apeople.automationanywhere.com/s/article/Python-script-fails-to-save-file

     

    if you are still facing an issue then please create a support case

     

    How to create a support case :

    https://apeople.automationanywhere.com/s/article/How-to-create-a-support-case-in-service-cloud

     

    if you don't have access to the above link, email the AA Support team "apeopleopsteam@automationanywhere.com" to get access.

    Automation Anywhere Team
    February 13, 2023

    Hi Parimal,

    Are you still facing an issue while running python script?

     

    Cadet | Tier 2
    October 10, 2024

     

    Hi, 

    I am facing same error “Failed in python execution.” Did you able to find any solution?