Question

Failed in Python execution

  • 29 August 2022
  • 1 reply
  • 38 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


1 reply

Userlevel 4
Badge +8

@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.

Reply