Error Initializing Python Engine

image
image

facing this error. Using Python version 3.6.

Is there any way to come with a solution to this problem?

1 Like

@Tanzill_Ahsan

Have you installed below highlighted package?

Because it is showing Dependency issue, Try to remove the package which you installed earlier and install this package

Hope this may help you

Thanks

same issue but install python 3.10 and package in studio also .

Try to install python from here Python Release Python 3.10.1 | Python.org and then restart the machine.

In order to verify where the python.exe resides, open a cmd.exe and type:

where python

Based on https://docs.uipath.com/activities/docs/release-notes-python-activities , in v1.6.0 we fixed an issue where UiPath.Python.Activities v1.4.1 would not support Python v3.10.1.


In a C# Windows project with UiPath.Python.Activities[1.6.0] (Studio 2022.4.6) with a locally Python 3.10 installed

Python Scope example configuration

Library path:

"C:\Users\username\AppData\Local\Programs\Python\Python310\python310.dll"

Path:

"C:\Users\username\AppData\Local\Programs\Python\Python310\"

Target: x64

Version: Auto

WorkingFolder: "C:\Users\username\OneDrive - UiPath\Desktop\Troubleshooting"

Run Python Script example

File: "C:\Users\username\OneDrive - UiPath\Desktop\Troubleshooting\oauth.py"

Let us know if this helped.

2 Likes

Hi @marian.platonov ,
I tried following your steps installed everything with same version, but in my case the UiPath is stuck at Python Scope without giving any error or timeout.
Any idea, i tried different versions of the package but none seems to work.

For Windows projects that use Python activities package versions lower than 1.8.0, the Python Scope activity requires you to install the .NET Desktop Runtime 5.0.17 .

1 Like

As mentioned above, the latest Python package version should not require the extra runtime anymore.


How to solve this problem?