Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python Scope: not working when targetFramework: Windows #321

Open
cristinaAlexandruUipath opened this issue Jan 16, 2023 · 2 comments
Open

Comments

@cristinaAlexandruUipath

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

@shinenazeer
Copy link

shinenazeer commented Jan 31, 2023

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.

@theloginerror
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants