Having tested this, the conclusion is that with UiPath Studio 2022.10.5 you need to use Python Package 1.4 and .NET Runtime 5 while with 2023.4 you can use 1.6 and .NET Runtime 7 to run Python.
Thanks!
The combination of UiPath Studio 2022.10.4, .NET Runtime 5, and the Python Package 1.4, works for me. I had to revert Python back to Python 3.9 though.
Hi,
I am still facing the issue after installing .net runtime. The python scope is keep running and does not throw any error. Can anyone help me on this.
Can you please share a screenshot of the Properties pane of the Python Scope activity?
Also please share a screenshot of Output Pane.
Hi @Prashant_08 please find the properties screenshot below.
If it helps:
this solution worked for me, thanks alot mate!
This saved me! 2 days struggling with it. Thank you
I’m posting this as a help for someone who might face the same situation as mine.
I followed every possible ways mentioned in this thread when I got the initial issue. Such as,
- Checked the execution of python code isolately
- Added ‘C:\Users{User}\AppData\Local\Programs\Python\Python39\python39.dll’ into 'Library Path (Linux or version>3.9) in Python scope
- Provided the folder where I keep my script as ‘Working Folder’ in Python scope
- Installed .NET Desktop Runtime 5.0.17
But the issue was not resolved. Later, I downgraded the version of UiPath.Python.Activities from 1.8.0 to 1.6.0 and then it worked.
- Here are the environment settings;
- UiPath Studio Version - 2023.4.4
- UiPath.Python.Activities - 1.6.0
- Installed Python version - Python 3.9.0 (64 bit)
Thank you
You need to provide Path as well. ‘C:\Users{User}\AppData\Local\Programs\Python\Python39’
put the path in quotes and use double slashes
Thank you for your post, I was stuck in this issue since 3 days. Now it is resolved. I have downgraded the Python activities from 1.8.0 to 1.6.0 and now the program executed.
Thanks a bunch, seriously.
Hey, Is this completely solved?
I’m also facing this issue. error are not given just stuck the code. If you really solve this issue and run smoothly please guide me.
Hi everyone!
I’m also facing the same issue.
I currently have:
python: version 3.8.10
ASP.NET core : 5.0.17
.NET Desktop Runtime - 5.0.17 (x64)
UiPath.Python.Activities: version 1.6.0
After installing .NET 5.0.17 it runs, but as soon as it reaches “invoke python method” it crashes. Giving me the error “UiPath.Python.Host stopped working”, as well as this error:
“System.IO.IOException: Pipe is broken. at System.IO.Pipes.PipeStream.CheckWriteOperations()
at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
at System.IO.StreamWriter.Dispose(Boolean disposing)
at System.IO.TextWriter.Dispose()
at UiPath.Python.Service.PythonProxy.RequestAsync(PythonRequest request, CancellationToken ct)
at UiPath.Python.Service.PythonProxy.Shutdown()
at UiPath.Python.Impl.OutOfProcessEngine.Release()
at UiPath.Python.Activities.PythonScope.Cleanup()
at UiPath.Python.Activities.PythonScope.OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)”
I’m also running a really simple script that multiplies two numbers, which works outside of UiPath.
Any help or guidance would help a lot! Thank you all very much!
I appreciate the help. But I’ms still stuck. It still crashes as soon as it arrives in the “invoke python method” stage.
I’ll provide my code as well as my properties for each activity if it helps:
Code:
import sys
import os
sys.path.append(os.path.dirname(os.path.realpath(‘C:\Users\amazon\AppData\Local\Programs\WinPython64\python-3.8.10’)))
def squareNumber(number):
return number*number
Thank you all again!
Hello everyone! Has anyone found a fix?
What type of project is it? (vb.net or c#)
The screenshots show conflicting syntax for the path:
![]()
One with a single \ and one with a double \\.
Please see a very simple sample over here that will hopefully help here:
Python 3.8 sample project_Windows.zip (2.9 KB)
How to see our output in message box?
I want just print “Hello Python” use to python.




