Python Scope: not working when targetFramework: Windows
Describe the bug When Python Scope is used inside a process with targetFramework Windows, the process gets stuck at Python Scope. There is no error logged in UiPath Studio. It just freezes for an unlimited period of time.
If the same logic is run in a process with targgetFramework Legacy-Windows, it works.
To Reproduce Steps to reproduce the behavior:
- Create a project in UiPath Studio having "Windows" inside Compatibility field
- Install Python Activities
- Drag and drop a Python Scope and provide the necessary arguments
- Click Debug
- The execution will be stuck at Python Scope
Expected behavior I would expect to have the activity failing after a specific amount of time and have an exception thrown that gives some information about what is wrong.
The cause of this issue is that “.NET 5.0 Desktop Runtime (v5.0.17)” was not installed. This cause was discovered in Event Viewer.
Discovered in UiPath.Python.Activities v1.6.0
I was able to run python code after installing .NET 5.0.17 Desktop Runtime and by providing below settings for Python Scope Activity v1.6.0.
For Python 3.9.16: Path: “C:\Users\USERNAME\AppData\Local\Programs\Python\Python39” Working Folder: Working folder of the script.
For Python 3.10: Library Path: “C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\python310.dll” Path: “C:\Users\USERNAME\AppData\Local\Programs\Python\Python310” Working Folder: Working folder of the script.
This issue has been mentioned on UiPath Community Forum. There might be relevant details there:
https://forum.uipath.com/t/getting-stuck-at-python-scope/560746/3