# UiPath, Python Script, Pipe Broken

**URL:** <https://forum.uipath.com/t/uipath-python-script-pipe-broken/347093>\
**Category:** Studio\
**Tags:** question, studio, python, activities\
**Created:** [September 21, 2021, 11:24am UTC](https://forum.uipath.com/t/uipath-python-script-pipe-broken/347093 "2021-09-21T11:24:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hurmet\_Noka](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hurmet_noka/32/225630_2.png) [@Hurmet\_Noka](https://forum.uipath.com/u/Hurmet_Noka)\
**Post date:** [September 21, 2021, 11:24am UTC](https://forum.uipath.com/t/uipath-python-script-pipe-broken/347093/1 "2021-09-21T11:24:14Z")

</div>

Hello Guys.  
I have this simple python code:

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

Which takes as input an excel file and saves a new excel file with manipulated data.  
The input is about 50 Rows.

I have installed Python 3.6 32 Bit on my Machine when I try to Execute the code.  
When I try to just print something it works.  
 ![image](https://global.discourse-cdn.com/uipath/original/3X/2/7/27ee92137afc176e22247f7bc43b0f5258af249a.png)

But the above Code doesnt work.  
 ![image](https://global.discourse-cdn.com/uipath/original/3X/6/7/67033679adb65b460bd9ba749f793d3c12037f98.png)

And this is the configuration:

 ![image](https://global.discourse-cdn.com/uipath/original/3X/6/2/62fd4ac6ae96b79fa922670eba8e6b7cf8d1577c.png)

Is it possible that I return the DF and take it from UIPATH as Datatable?

Thank You Guys

---

<div class="post-metadata">

**Author:** ![Hurmet\_Noka](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hurmet_noka/32/225630_2.png) [@Hurmet\_Noka](https://forum.uipath.com/u/Hurmet_Noka)\
**Post date:** [September 22, 2021, 7:40am UTC](https://forum.uipath.com/t/uipath-python-script-pipe-broken/347093/2 "2021-09-22T07:40:12Z")

</div>

Nothing ?

---

<div class="post-metadata">

**Author:** ![naveenchvm](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/naveenchvm/32/523978_2.png) [@naveenchvm](https://forum.uipath.com/u/naveenchvm)\
**Post date:** [October 28, 2021, 9:23pm UTC](https://forum.uipath.com/t/uipath-python-script-pipe-broken/347093/3 "2021-10-28T21:23:12Z")

</div>

Are you returning any Value in your Python function? Try to return the output and your error should be resolved.

---

<div class="post-metadata">

**Author:** ![Hurmet\_Noka](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hurmet_noka/32/225630_2.png) [@Hurmet\_Noka](https://forum.uipath.com/u/Hurmet_Noka)\
**Post date:** [November 2, 2021, 7:57am UTC](https://forum.uipath.com/t/uipath-python-script-pipe-broken/347093/4 "2021-11-02T07:57:14Z")

</div>

![image](https://global.discourse-cdn.com/uipath/original/4X/5/5/b/55b1ce1d9a3f5390e444e4440bcf87b672d68cd3.png)

Thats my script i want to save a DF as CSV.  
What should i return ?

---

<div class="post-metadata">

**Author:** ![CN-dev](https://avatars.discourse-cdn.com/v4/letter/c/9de053/32.png) [@CN-dev](https://forum.uipath.com/u/CN-dev)\
**Post date:** [June 7, 2023, 9:23am UTC](https://forum.uipath.com/t/uipath-python-script-pipe-broken/347093/5 "2023-06-07T09:23:06Z")

</div>

I’ve got same error, and In my python scripts, I import xlwings, so I got this pipe broken error, and I change a method, using **invoke power shell** to run python scripts.
