Unable to run python code through UIPath

Hi Team,

I have one python code and want to run that code through but facing issue while running python scope activity. The python scope activity is not throwing any error but The activity takes to much time in doing nothing.
Let me know team if anyone have solution how to run python code through UiPath by other way.

@Smitesh_Aher2,

Make sure of below points:

  1. You have installed Python versions 3.12 and lower version.
    Python Scope supports the following Python versions:

    For Windows - Legacy projects, 2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 3.12.
    For Windows projects, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 3.12.

  2. Installed .Net Runtime 6.0.33
    Download .NET 6.0 Desktop Runtime (v6.0.33) - Windows x64 Installer

  3. Your Python scope is configured correctly.

Thanks,
Ashok :slight_smile:

@Smitesh_Aher2,

You can refer this in detailed documentation on how to get it working.

Also refer my sample code here.

Thanks,
Ashok :slight_smile:

Hi @ashokkarale

We are using python version:- 3.12.5 & .net framework version:- 4.0

We are getting below error while running python scope activity
image

@Smitesh_Aher2,

Python 3.12.5 will not work. You will have to downgrade it to 3.12.0 or below.
It need .Net Runtime 6.0.33 strictly not newer or older.

HI @Smitesh_Aher2

Please upgrade the version of Python Interpreter and validate the Environment variable that set Python path.

Thanks,
Chethan

@ashokkarale working fine now python scope activity but i am getting below error for invoke python method

image

@Smitesh_Aher2

As per error your python code is not working

open exception details from locals panel you will see the complete error

also better to execute the file first and then try to invoke from UiPath

cheers

@Smitesh_Aher2,

Great to hear that your initial query is resolved.

Meanwhile I am looking into this error, Kindly close this thread as it got resolved and create new thread for this new error so it will get noticed by experts.

Thanks,
Ashok :slightly_smiling_face:

Sure.
@ashokkarale Thanks!!!

1 Like

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