Error initializing Python engine -> RemoteException wrapping System.Exception: Host process has exit!

Hi @Anil_G / @ashokkarale

sorry for the delay… I am able to resolve issue with one workaround for now it is working for me.

The issue is main with the UiPath compatibility as well as code changes.

Observations:

  1. In my python code, i have written code to take path dynamic(current directory) and no hardcoded values has given.
    If I am running the code it is able to run properly with CMD where as I am getting issues in python activities saying pipe broken error(for both Run script & load script activities).

  2. If I used hardcoded values in my script and then if I try with Run script activity it worked fine and no issues.
    The same script with hardcoded values if I try to run with load script activity, I am able to get the output for load script but unable to invoke any method(all required values passed), even though the method is present in script, Always getting Pipe broken error.

WorkAround:

  1. I have installed .net 6 version
  2. I have degraded to python 3.12 version given library path, path and selected >=3.10 version for python scope
  3. I used write text file activity to write my code and pass the variables dynamic and then convert to python file and passed as input to Run script python file which it will create my output file.

Thanks for all the help @ashokkarale & @Anil_G
@UiPath_Community : Please check if this is known issue from UiPath end. I am able to run script, if my script is having hardcoded values. but I am not able to run if I am making my script to take dynamic paths.

2 Likes