# Error Initializing Python Engine

**URL:** <https://forum.uipath.com/t/error-initializing-python-engine/334238>\
**Category:** Activities\
**Tags:** question, python, activities\
**Created:** [August 1, 2021, 5:50am UTC](https://forum.uipath.com/t/error-initializing-python-engine/334238 "2021-08-01T05:50:57Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tanzill\_Ahsan](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@Tanzill\_Ahsan](https://forum.uipath.com/u/Tanzill_Ahsan)\
**Post date:** [August 1, 2021, 5:50am UTC](https://forum.uipath.com/t/error-initializing-python-engine/334238/1 "2021-08-01T05:50:57Z")

</div>

![image](https://global.discourse-cdn.com/uipath/original/3X/c/5/c5e2669c6a815ca5336bf4e15f8e0bb70530a4fe.png)  
 ![image](https://global.discourse-cdn.com/uipath/original/3X/a/3/a3c055e912ebb0866d98ec27130b7f577a1136f7.png)

facing this error. Using Python version 3.6.

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

---

<div class="post-metadata">

**Author:** ![Srini84](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/srini84/32/464032_2.png) [@Srini84](https://forum.uipath.com/u/Srini84)\
**Post date:** [August 1, 2021, 6:12am UTC](https://forum.uipath.com/t/error-initializing-python-engine/334238/2 "2021-08-01T06:12:47Z")

</div>

@Tanzill_Ahsan

Have you installed below highlighted package?

 ![image](https://global.discourse-cdn.com/uipath/original/3X/4/c/4caa373a61cd3b621a51422ca7ea0c32f2b98d3e.png)

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

---

<div class="post-metadata">

**Author:** ![SAI\_ESVAR\_P](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sai_esvar_p/32/195820_2.png) [@SAI\_ESVAR\_P](https://forum.uipath.com/u/SAI_ESVAR_P)\
**Post date:** [August 15, 2022, 11:07am UTC](https://forum.uipath.com/t/error-initializing-python-engine/334238/3 "2022-08-15T11:07:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![marian.platonov](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/marian.platonov/32/260263_2.png) [@marian.platonov](https://forum.uipath.com/u/marian.platonov)\
**Post date:** [September 2, 2022, 1:58pm UTC](https://forum.uipath.com/t/error-initializing-python-engine/334238/4 "2022-09-02T13:58:28Z")

</div>

Try to install python from here [Python Release Python 3.10.1 | Python.org](https://www.python.org/downloads/release/python-3101/) 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](https://docs.uipath.com/activities/docs/release-notes-python-activities) , in v1.6.0 we fixed an issue where UiPath.Python.[Activities](https://docs.uipath.com/activities/docs/introduction) 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:

```auto
"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"`

 ![image](https://global.discourse-cdn.com/uipath/original/4X/d/7/c/d7ceb67adfd156d3295531de80cdce129b539340.png)

Let us know if this helped.

---

<div class="post-metadata">

**Author:** ![piyushagarwal.0108](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/piyushagarwal.0108/32/376437_2.png) [@piyushagarwal.0108](https://forum.uipath.com/u/piyushagarwal.0108)\
**Post date:** [March 20, 2024, 9:57am UTC](https://forum.uipath.com/t/error-initializing-python-engine/334238/5 "2024-03-20T09:57:05Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![marian.platonov](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/marian.platonov/32/260263_2.png) [@marian.platonov](https://forum.uipath.com/u/marian.platonov)\
**Post date:** [March 20, 2024, 3:08pm UTC](https://forum.uipath.com/t/error-initializing-python-engine/334238/6 "2024-03-20T15:08:39Z")

</div>

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](https://dotnet.microsoft.com/en-us/download/dotnet/5.0) .

---

<div class="post-metadata">

**Author:** ![loginerror](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/loginerror/32/22614_2.png) [@loginerror](https://forum.uipath.com/u/loginerror)\
**Post date:** [March 20, 2024, 4:58pm UTC](https://forum.uipath.com/t/error-initializing-python-engine/334238/7 "2024-03-20T16:58:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Aragorn2\_11](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Aragorn2\_11](https://forum.uipath.com/u/Aragorn2_11)\
**Post date:** [May 10, 2024, 11:08am UTC](https://forum.uipath.com/t/error-initializing-python-engine/334238/8 "2024-05-10T11:08:45Z")

</div>

![image](https://global.discourse-cdn.com/uipath/original/4X/2/1/8/2187c208ab446a55ddf7037f59c5761671fde760.png)  
How to solve this problem？

---

<div class="post-metadata">

**Author:** ![Agarwal\_Piyush](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/agarwal_piyush/32/513136_2.png) [@Agarwal\_Piyush](https://forum.uipath.com/u/Agarwal_Piyush)\
**Post date:** [December 18, 2024, 7:29pm UTC](https://forum.uipath.com/t/error-initializing-python-engine/334238/9 "2024-12-18T19:29:53Z")

</div>

Hi @loginerror ,

I am again stuck with issue where Python Scope gets stuck with Partial Execution.  
DotNet version: 5.0.17 is installed  
Package version is 1.8.0

 ![image](https://global.discourse-cdn.com/uipath/original/4X/3/6/3/363dea1942b05b092c6102b4fcf856086011390b.png)  
 ![image](https://global.discourse-cdn.com/uipath/original/4X/7/5/d/75d4876941d7f0d4f9db34be2583dac8aa3395e3.png)
