# UIPath & Python execution error

**URL:** <https://forum.uipath.com/t/uipath-python-execution-error/687649>\
**Category:** Studio\
**Tags:** activities-panel, question, studio, python, activities\
**Created:** [November 9, 2023, 11:10am UTC](https://forum.uipath.com/t/uipath-python-execution-error/687649 "2023-11-09T11:10:57Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![ydhanabalan](https://avatars.discourse-cdn.com/v4/letter/y/ac91a4/32.png) [@ydhanabalan](https://forum.uipath.com/u/ydhanabalan)\
**Post date:** [November 9, 2023, 11:10am UTC](https://forum.uipath.com/t/uipath-python-execution-error/687649/1 "2023-11-09T11:10:57Z")

</div>

Hi Team,

I have integrated Python scope in UiPath, after that, when I try to run the flow the flow is stopped during Python scope activity execution. I have neither thrown an error also.  
Please advise on this.

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

---

<div class="post-metadata">

**Author:** ![neha.upase](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/neha.upase/32/402674_2.png) [@neha.upase](https://forum.uipath.com/u/neha.upase)\
**Post date:** [November 9, 2023, 11:18am UTC](https://forum.uipath.com/t/uipath-python-execution-error/687649/2 "2023-11-09T11:18:18Z")

</div>

Hi,

please check below link,

[Activities - Python Scope (uipath.com)](https://docs.uipath.com/activities/other/latest/developer/python-scope)

 ![image](https://global.discourse-cdn.com/uipath/original/4X/6/b/0/6b0adea7768b597223f608df553b296f5bd00bca.png)

For Windows projects, 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:** ![ydhanabalan](https://avatars.discourse-cdn.com/v4/letter/y/ac91a4/32.png) [@ydhanabalan](https://forum.uipath.com/u/ydhanabalan)\
**Post date:** [November 9, 2023, 12:20pm UTC](https://forum.uipath.com/t/uipath-python-execution-error/687649/3 "2023-11-09T12:20:44Z")

</div>

Hi @neha.upase  
I have installed .net as you said, after trying to run the flow getting below error.  
Python Scope: Error initializing Python engine  
 ![image](https://global.discourse-cdn.com/uipath/original/4X/5/b/7/5b718aa49e7b31fc7232c9a04c3254a9e10d9f5c.png)

---

<div class="post-metadata">

**Author:** ![neha.upase](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/neha.upase/32/402674_2.png) [@neha.upase](https://forum.uipath.com/u/neha.upase)\
**Post date:** [November 9, 2023, 12:35pm UTC](https://forum.uipath.com/t/uipath-python-execution-error/687649/4 "2023-11-09T12:35:27Z")

</div>

In Python Scope Activity, go to Properties → Input Section → Set “Target” field to **x64**.  
and restart system.

and check below post for library path  
[Unable to run Python Scope: Error initializing Python engine 64 bit - Help / Studio - UiPath Community Forum](https://forum.uipath.com/t/unable-to-run-python-scope-error-initializing-python-engine-64-bit/400884/6)

---

<div class="post-metadata">

**Author:** ![ydhanabalan](https://avatars.discourse-cdn.com/v4/letter/y/ac91a4/32.png) [@ydhanabalan](https://forum.uipath.com/u/ydhanabalan)\
**Post date:** [November 9, 2023, 12:49pm UTC](https://forum.uipath.com/t/uipath-python-execution-error/687649/5 "2023-11-09T12:49:48Z")

</div>

I tried restarting system and set the library path as well but still getting same issue

---

<div class="post-metadata">

**Author:** ![ydhanabalan](https://avatars.discourse-cdn.com/v4/letter/y/ac91a4/32.png) [@ydhanabalan](https://forum.uipath.com/u/ydhanabalan)\
**Post date:** [November 9, 2023, 3:10pm UTC](https://forum.uipath.com/t/uipath-python-execution-error/687649/6 "2023-11-09T15:10:50Z")

</div>

Hi Team,

Am working on this priority, If anyone has any ideas kindly share.

Here, in our organization, we don’t have access to C drive, but still use the input parameters from C drive. Is that an issue for the below error ?

![image](https://global.discourse-cdn.com/uipath/original/4X/8/4/2/842605f2fdb535b9b23d5a60781c329187502915.png)  
**“Python Scope: Error initializing Python engine”**

Appreciate your response.

---

<div class="post-metadata">

**Author:** ![AJ\_Ask](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/aj_ask/32/555384_2.png) [@AJ\_Ask](https://forum.uipath.com/u/AJ_Ask)\
**Post date:** [November 10, 2023, 4:51am UTC](https://forum.uipath.com/t/uipath-python-execution-error/687649/7 "2023-11-10T04:51:04Z")

</div>

Hi @ydhanabalan

Use Path Like This

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

Target: **x64**

Version: **Auto**

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

For Me this worked because i was using 1.6.0 Python Activities. With Python 3.6.8. Also Update package to latest version which supports latest python version  
 ![image](https://global.discourse-cdn.com/uipath/original/4X/5/a/2/5a2fb24840ba708d9d5ce2f4a0ac34b84e2cf81c.png)

Check this also  
[https://forum.uipath.com/t/error-initializing-python-engine/334238/4?u=aj\_ask](https://forum.uipath.com/t/error-initializing-python-engine/334238/4)

Hope this helps

---

<div class="post-metadata">

**Author:** ![ydhanabalan](https://avatars.discourse-cdn.com/v4/letter/y/ac91a4/32.png) [@ydhanabalan](https://forum.uipath.com/u/ydhanabalan)\
**Post date:** [November 10, 2023, 9:35am UTC](https://forum.uipath.com/t/uipath-python-execution-error/687649/8 "2023-11-10T09:35:49Z")

</div>

Hi @AJ_Ask  
Please check below settings which I have set.  
 ![image](https://global.discourse-cdn.com/uipath/original/4X/6/3/9/639180db555bffe42143045a27974261cdffe21b.png)

 ![image](https://global.discourse-cdn.com/uipath/original/4X/6/f/a/6fa9fab7ff7b1eb8b4a709313fbcaee4de938c22.png)

And also installed latest version of Python in UiPath.

 ![image](https://global.discourse-cdn.com/uipath/original/4X/d/2/a/d2acadb195f5579bd426bbe10a7bbb71157f3adc.png)

Note: Am uisng 3.13 version python .exe file.

Still am facing same Error Initializing Python Engine issue. Please help

---

<div class="post-metadata">

**Author:** ![AJ\_Ask](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/aj_ask/32/555384_2.png) [@AJ\_Ask](https://forum.uipath.com/u/AJ_Ask)\
**Post date:** [November 10, 2023, 11:49am UTC](https://forum.uipath.com/t/uipath-python-execution-error/687649/9 "2023-11-10T11:49:12Z")

</div>

Hi @ydhanabalan  
Looks correct. Can you check @marian.platonov Not getting what we are missing!

---

<div class="post-metadata">

**Author:** ![ydhanabalan](https://avatars.discourse-cdn.com/v4/letter/y/ac91a4/32.png) [@ydhanabalan](https://forum.uipath.com/u/ydhanabalan)\
**Post date:** [November 10, 2023, 12:16pm UTC](https://forum.uipath.com/t/uipath-python-execution-error/687649/10 "2023-11-10T12:16:34Z")

</div>

sure, thank you…  
@marian.platonov Could you please help me out here ?

---

<div class="post-metadata">

**Author:** ![AJ\_Ask](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/aj_ask/32/555384_2.png) [@AJ\_Ask](https://forum.uipath.com/u/AJ_Ask)\
**Post date:** [November 10, 2023, 1:43pm UTC](https://forum.uipath.com/t/uipath-python-execution-error/687649/11 "2023-11-10T13:43:57Z")

</div>

Hi @ydhanabalan

Try downgrading the python version to 3.10 or 3.11.  
I think they have a problem with 3.13 as it’s the latest one.

---

<div class="post-metadata">

**Author:** ![ydhanabalan](https://avatars.discourse-cdn.com/v4/letter/y/ac91a4/32.png) [@ydhanabalan](https://forum.uipath.com/u/ydhanabalan)\
**Post date:** [November 10, 2023, 2:12pm UTC](https://forum.uipath.com/t/uipath-python-execution-error/687649/12 "2023-11-10T14:12:27Z")

</div>

sure @AJ_Ask , will try that version and update

---

<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:** [November 10, 2023, 3:57pm UTC](https://forum.uipath.com/t/uipath-python-execution-error/687649/13 "2023-11-10T15:57:25Z")

</div>

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

Reference: [Activities - About the Python Activities Package](https://docs.uipath.com/activities/other/latest/developer/about-the-python-activities-pack)

UiPath.Python.Activities.1.7.1 package is now compatible with Python version 3.11.

For Windows projects, 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:** ![ydhanabalan](https://avatars.discourse-cdn.com/v4/letter/y/ac91a4/32.png) [@ydhanabalan](https://forum.uipath.com/u/ydhanabalan)\
**Post date:** [November 13, 2023, 8:58am UTC](https://forum.uipath.com/t/uipath-python-execution-error/687649/14 "2023-11-13T08:58:11Z")

</div>

thanks, version3.13 is the problem, tried with 3.10.11 version. that worked.  
thanks all

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [November 16, 2023, 8:58am UTC](https://forum.uipath.com/t/uipath-python-execution-error/687649/15 "2023-11-16T08:58:21Z")

</div>

Closed on November 16, 2023, 8:58am UTC

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