# Python Activity Not Working

**URL:** <https://forum.uipath.com/t/python-activity-not-working/749736>\
**Category:** Studio\
**Tags:** run-python, activities-panel, python-scope, question, studio, python, activities\
**Created:** [June 26, 2024, 8:33am UTC](https://forum.uipath.com/t/python-activity-not-working/749736 "2024-06-26T08:33:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Charan\_Kalyankar](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/charan_kalyankar/32/482344_2.png) [@Charan\_Kalyankar](https://forum.uipath.com/u/Charan_Kalyankar)\
**Post date:** [June 26, 2024, 8:33am UTC](https://forum.uipath.com/t/python-activity-not-working/749736/1 "2024-06-26T08:33:19Z")

</div>

Hey Peeps!  
I’m facing this issue where I am using an activity “Load Python Script” inside the “Python Scope” activity. But the script is endlessly running and producing no output, or not even terminating after sometime.  
I have tried downgrading the Python version from 3.12 to 3.8.1 and the issue still persists.  
Here’s the screenshot for the reference of the activity I am trying to use.

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

If there’s any solution you can provide it will be helpful.

---

<div class="post-metadata">

**Author:** ![ashokkarale](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ashokkarale/32/474400_2.png) [@ashokkarale](https://forum.uipath.com/u/ashokkarale)\
**Post date:** [June 26, 2024, 8:55am UTC](https://forum.uipath.com/t/python-activity-not-working/749736/2 "2024-06-26T08:55:44Z")

</div>

@Charan_Kalyankar,

Have you installed .Net runtime 6? It’s prerequisites for Python package activities.

Also follow these threads for solution.

> [@Getting error at python scope activity](https://forum.uipath.com/t/getting-error-at-python-scope-activity/745669):
>
> Hi every one, @siddharth @Yoichi@J0ska@ashokkarale getting error at python scope activity at path path = C:\Program Files (x86)\Python39\V\_3.9.8\soft\WPy64\python-3.9.8.amd64 How can I achieve this. Thank you!!

> [@Error in the Python Scope Activity](https://forum.uipath.com/t/error-in-the-python-scope-activity/739106):
>
> 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…

Thanks,  
Ashok 🙂

---

<div class="post-metadata">

**Author:** ![Charan\_Kalyankar](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/charan_kalyankar/32/482344_2.png) [@Charan\_Kalyankar](https://forum.uipath.com/u/Charan_Kalyankar)\
**Post date:** [June 26, 2024, 10:08am UTC](https://forum.uipath.com/t/python-activity-not-working/749736/3 "2024-06-26T10:08:14Z")

</div>

Hey @ashokkarale,

Thank you for the inputs. It’s working now.

---

<div class="post-metadata">

**Author:** ![Charan\_Kalyankar](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/charan_kalyankar/32/482344_2.png) [@Charan\_Kalyankar](https://forum.uipath.com/u/Charan_Kalyankar)\
**Post date:** [June 26, 2024, 10:18am UTC](https://forum.uipath.com/t/python-activity-not-working/749736/4 "2024-06-26T10:18:52Z")

</div>

Hey @ashokkarale,

The python activity is running fine for normal python files. I tried with a basic hello world function. It ran properly. But when I am trying to run the activity with a code which has a processing logic of excel sheets, it is throwing this error called “ **Pipe is Broken** ”.  
Here’s the screenshot for the reference. If you could help on this, will be great.  
Thanks, Charan.  
 ![image](https://global.discourse-cdn.com/uipath/original/4X/b/1/1/b119a68e35c5d1eaf5ad4bf1f34da8af4205d036.png)

---

<div class="post-metadata">

**Author:** ![ashokkarale](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ashokkarale/32/474400_2.png) [@ashokkarale](https://forum.uipath.com/u/ashokkarale)\
**Post date:** [June 26, 2024, 10:57am UTC](https://forum.uipath.com/t/python-activity-not-working/749736/5 "2024-06-26T10:57:42Z")

</div>

@Charan_Kalyankar,

If your python script throws some error, it disconnects Python scope from the script. Try to handle the exception at script level only and you should be fine.

Thanks,  
Ashok 🙂

---

<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:** [June 29, 2024, 10:58am UTC](https://forum.uipath.com/t/python-activity-not-working/749736/6 "2024-06-29T10:58:42Z")

</div>

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