Python process scope gets stuck, no error just nothing runs

Hi All,

I am facing issue and I have gone through multiple post like these., still issue persists. Any pointers appreciated.
Unable to run Python Scope: Error initializing Python engine 64 bit - Help / Studio - UiPath Community Forum

Python Scope

Python Verison
Python 3.12.3

Dot Net Runtime
Microsoft.AspNetCore.App 5.0.17 [C:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.17 [C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 5.0.17 [C:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App]

@ByteBreaker

when it is stuck can you open the event viewer and check if there are any errors reported there please

cheers

1 Like
  1. using the command link pls check your code is running
  2. by looking at your screenshot you have used the right version of python pls look at the below post
    Activities - About the Python activity package
  3. check the path “C:\Users\UocalAppData\Local\Programs\Python\Python312”
  4. Within the “Python Scope” activity properties, ensure the “Target” is set to “x64”
  5. check that the same code is working on other systems
  6. review the event logs
  7. Microsoft.AspNetCore.App 5.0.17 → supported version for Python
  8. Reinstall UiPath Python Activities

@ByteBreaker I hope this steps will help you solve the issue. Pls let me know if you need any help from us.

1 Like

Hi @Anil_G and @mukesh.singh, thank you for pointing in the right direction, I should have checked there before. It was pointed out that “HostFxr.dll” was missing and even after re-installing the Python package, the issue was not resolved.

Further, I tried to install windowsdesktop-runtime-6.0.29-win-x64 and dotnet-runtime-6.0.29-win-x64 (UiPath documentation slightly seems to be mentioning it is included in the tool installation) but in my case, installing these resolved the issue and I am able to run Python in UiPath.

I appreciate your responses.

Thank you.

1 Like

This is indeed the solution. I thought it is supposed to come with Studio installation, but I’ll double check if that is the case and we’ll update the documentation accordingly :slight_smile:

Thanks for the update @loginerror.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.