# Unable to run python code through python scope

**URL:** <https://forum.uipath.com/t/unable-to-run-python-code-through-python-scope/646138>\
**Category:** Activities\
**Tags:** question, python, activities\
**Created:** [October 17, 2023, 11:43am UTC](https://forum.uipath.com/t/unable-to-run-python-code-through-python-scope/646138 "2023-10-17T11:43:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sanskar\_Threja](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sanskar_threja/32/400887_2.png) [@Sanskar\_Threja](https://forum.uipath.com/u/Sanskar_Threja)\
**Post date:** [October 17, 2023, 11:43am UTC](https://forum.uipath.com/t/unable-to-run-python-code-through-python-scope/646138/1 "2023-10-17T11:43:32Z")

</div>

I am trying to run my python script inside the python scope activity but it just keeps on executing without giving any error or output.

I have given the correct paths for python inside python scope and the python file inside the run python script but it is still not executing.

---

<div class="post-metadata">

**Author:** ![erkanceylan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/erkanceylan/32/462481_2.png) [@erkanceylan](https://forum.uipath.com/u/erkanceylan)\
**Post date:** [October 17, 2023, 12:44pm UTC](https://forum.uipath.com/t/unable-to-run-python-code-through-python-scope/646138/2 "2023-10-17T12:44:52Z")

</div>

Hi Sanskar,

You need to install .NET Runtime v5.0.17.

You can find the download link below.

> **[Download .NET 5.0 Runtime (v5.0.17) - Windows x64 Installer](https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-5.0.17-windows-x64-installer)**

---

<div class="post-metadata">

**Author:** ![Palaniyappan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/palaniyappan/32/524095_2.png) [@Palaniyappan](https://forum.uipath.com/u/Palaniyappan)\
**Post date:** [October 17, 2023, 4:20pm UTC](https://forum.uipath.com/t/unable-to-run-python-code-through-python-scope/646138/3 "2023-10-17T16:20:09Z")

</div>

Welcome to UiPath forum

Check this out on how to run python script

Follow the same steps to get it executed successfully

[https://docs.uipath.com/activities/other/latest/developer/invoking-a-python-script](https://docs.uipath.com/activities/other/latest/developer/invoking-a-python-script)

Cheers @Sanskar_Threja

---

<div class="post-metadata">

**Author:** ![supermanPunch](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/supermanpunch/32/133652_2.png) [@supermanPunch](https://forum.uipath.com/u/supermanPunch)\
**Post date:** [October 17, 2023, 4:33pm UTC](https://forum.uipath.com/t/unable-to-run-python-code-through-python-scope/646138/4 "2023-10-17T16:33:24Z")

</div>

> [@Sanskar\_Threja](#):
>
> but it just keeps on executing without giving any error or output.

Hi @Sanskar_Threja ,

Could you let us know what is the Python Code performing ? Do you get an Output or a return value from the Program ?

---

<div class="post-metadata">

**Author:** ![Hasan\_Danish](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hasan_danish/32/285526_2.png) [@Hasan\_Danish](https://forum.uipath.com/u/Hasan_Danish)\
**Post date:** [March 4, 2024, 10:34pm UTC](https://forum.uipath.com/t/unable-to-run-python-code-through-python-scope/646138/5 "2024-03-04T22:34:54Z")

</div>

Hi sanskar I am facing exactly same issue can you tell if you found any solution
