Error in the Python Scope Activity

I want to run a run a function in a python script. The script is really simple and has no errors.
UiPath Studio: 2023.10.6
UiPath.Python.Activities: 1.8.1

The error is the following: Python Scope: The specified Python path is not valid: C:\Users*******\AppData\Local\Programs\Python\Python311\python.exe

This are the Python Scope properties:

If I run where python I have the following:
C:\Users*******\AppData\Local\Programs\Python\Python311\python.exe

I searched for solution in the Forum but after trying all the possible solutions I am still blocked.

Thanks in advance for your help.

@didac.elgueta

Can you give the library path as well and check…

Also in the path give only till python311…python.exe is not needed

Cheers

Hi @Anil_G

Thanks for your reply. I have removed the python.exe in the Path property and I have added the property Library Path.

Now I don’t get the error but the execution is stuck.

@didac.elguet,

Try running this sample code.

You should have .Net runtime 6.0 installed and the Python exe path added to System variable.

Main.xaml (8.3 KB)

Thanks,
Ashok :slight_smile:

@didac.elgueta

.net 5.0+ runtime is needed for python to run

Also to confirm error check eventviewer logs

Cheers

Hi @ashokkarale

Thanks for your reply. I needed to install .NET 6.0

2 Likes

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