Resolving Python Scope Hang Issue in Windows Projects

How to solve Python Scope hang issue?

Issue Description: In a Windows project, Python Scope hangs, does not continue and no error is received.

Cause: Usually, this behavior occurs if the .NET Desktop Runtime is not installed on the Studio/Robot machine, which is a prerequisite for Python activities in Windows projects.

Resolution: This behavior is typically due to .NET Desktop Runtime not being installed on the Studio machine.

  1. Python activity packages up to v1.7.1 included, require the .NET Desktop Runtime 5.0.17 for Windows type projects, as they require .NET 5. Beginning with v1.8.1 the Python activity package is now compatible with .NET 6.
  2. The runtime can be downloaded from the Microsoft website:
  • x64:
    • https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop-5.0.17-windows-x64-installer
    • https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop-6.0.33-windows-x64-installer
  • x86:
    • https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop-5.0.17-windows-x86-installer
    • https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop-6.0.33-windows-x86-installer
  1. If the issue persists after installing the correct .NET Desktop Runtime, collect a hang dump via Procdump when reproducing the issue in order to further investigate:
procdump.exe -accepteula -ma -h "PID" 
  1. Find the PID (process ID) of the affected Studio process in the Task Manager, from the PID column:

image.png