Community.Activities icon indicating copy to clipboard operation
Community.Activities copied to clipboard

Python Scope: not working when targetFramework: Windows

Open cristinaAlexandruUipath opened this issue 3 years ago • 2 comments

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:

  1. Create a project in UiPath Studio having "Windows" inside Compatibility field
  2. Install Python Activities
  3. Drag and drop a Python Scope and provide the necessary arguments
  4. Click Debug
  5. 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

cristinaAlexandruUipath avatar Jan 16 '23 14:01 cristinaAlexandruUipath

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.

shinenazeer avatar Jan 31 '23 18:01 shinenazeer

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

theloginerror avatar Jul 22 '23 22:07 theloginerror