Error in Python Scope Activity

Hi Everyone, hope you are doing great.

I am integrating Python application with UiPath, I am using Python V3.6 and UiPath V2024.10.5 , I have configured everything that required but still while running, the bot is getting stuck on Python Scope Activity
I have used:
Library path: -
Path: python home path
Target: x86
Timeout: -
Version: Python 3.6
WorkingFolder: -

Kindly suggest the resolution.

@Sanket_Tidke,

Have you installed .Net Runtime 6.0?

Also follow these How to guides:

2 Likes

Just to clarify, it is the .NET Desktop Runtime 6.0.x that is needed for Python 1.8.1 activity package:

1 Like

Thank you @ashokkarale & @loginerror for providing these resolutions.

I have installed .Net Desktop Runtime and retried, but still bot is not moving further from Python scope activity.

What version of the Python activity package are you using? Although the .NET 6 Desktop Runtime 6.0.x is required starting from UiPath.Python.Activities 1.8.1, the previous versions required .NET 5 Desktop Runtime.

The simplest way to test this out is to upgrade the Python activities package to the latest 1.8.1 version.

I was using Python activity package 1.8.1 but I tried with above as well.

Then another idea is to fine tune the settings here. Please use this sample project as per our documentation:
Download example project

Things that you might have to adapt:

  • both Library path and Path need to be configured
  • the Target needs to match the version of the .NET Desktop Runtime that you installed

It will be the easiest if you simply try with the above example, but change the paths to correspond with your Python installation.

2 Likes

configured both paths and version as well in given project, still bot stuck on Python Scope

@Sanket_Tidke

If you have multiple python version installed remove other versions only keep which you are using. Downgrade the python package by one version & check.

Hope this helps :slight_smile:

1 Like

I have only 3.6v of python no other version present and I have tried with all versions of Python package, still issue persists.

@Sanket_Tidke,

Tried that project shared by Maciej? What’s the output?

Yes tried with Mac’s project same issue, bot is stuck. Also tried your project of April 24 still not resolved

What is the path of your Python installation? Was it installed via the Python installer or via Windows Store?



PFA

@Sanket_Tidke,

Not sure if this impacts or not but have you set this Python installation path to Environment Variables?

How to check that?
Just open command prompt and type python this should not give any error. If any error it means the Environment Variable not set for Python.

How to add Python Path to Environment Variables?

Try after this setup.

Thanks,
Ashok :slight_smile:

Just tried this, still issue persists.
I am using UiPath V2024.10.5
python V3.6.0
Python Package 1.8.1
.Net SDK 6.0.4

Python v3.12 - Invoking a script.zip (97.9 KB)

This solution worked

1 Like

Thank You @ashokkarale for providing proper solution by connecting over the call.
Here is the resolution for everyone:
-Install Python V3.12 64bit

-Install Python application in accessible “c” folder i.e. C:\Program files\Python

-Install .net windows desktop runtime V6.0.32 64bit .NET Core 6.0.32 - Versions of .NET

-Python Activity Package 1.8.1 or above

2 Likes

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