Python Pipe is Broken

Hey Peeps!

I am facing this issue called “Pipe is Broken” while using Python Scope activity in UiPath.

image

The script runs fine when ran with a software like Jupyter or VSCode.
The version of the Python I am using is Python 3.8.

@Charan_Kalyankar

did happen to install .net runtiem 5+?

check the event viewer logs to see the exact error

cheers

Previously when i was trying to run Python files, I wasn’t able to run them. Then I installed .NET Runtime 6 and ran some sample files in python and they worked fine. Now when I am trying to run a file with some operations its failing. I have checked the logs and there is nothing related to .NET runtime.

@Charan_Kalyankar Convert your Python code into exe and deploy into framework folder and call exe file by using start process only if you don’t have any output variables to consume from python code.

Try downgrading the Python activity package.

1 Like

HI @Charan_Kalyankar ,

Are you executing the python code in a loop? I faced this issue when I was trying to execute my python code in a loop. If you are not returning any output from your code, better to convert your python code into exe and call the file using start process as suggested by @rkelchuri

Thanks,
Pallavi.

@Charan_Kalyankar

Can you open the locals panel and show the exception details here

cheers

The issue got resolved guys. The issue was related to python installations.
There were some libraries missing globally (xlrd, openpyxl) and somehow pip was not in the PATH.
And there were multiple python installations which was one reason maybe the pipe was breaking.

Thank you for your timely replies guys. Grateful for the support.

1 Like