# Python Integration (Pipe is broken)

**URL:** <https://forum.uipath.com/t/python-integration-pipe-is-broken/418196>\
**Category:** Activities\
**Tags:** extension, studio, python, error, activities\
**Created:** [April 26, 2022, 12:26pm UTC](https://forum.uipath.com/t/python-integration-pipe-is-broken/418196 "2022-04-26T12:26:17Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hisham\_Alshareef](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hisham_alshareef/32/300280_2.png) [@Hisham\_Alshareef](https://forum.uipath.com/u/Hisham_Alshareef)\
**Post date:** [April 26, 2022, 12:26pm UTC](https://forum.uipath.com/t/python-integration-pipe-is-broken/418196/1 "2022-04-26T12:26:17Z")

</div>

Hello there,  
I have problem with python integration when I import some libraries as shown in the 1st picture  
it shows me the message: “pipe is broken” as you can see in the 2nd picture; However, we tried to run another function from the same file without the import part and it worked, so does anyone have any idea how this can be resolved.

 ![pip is broken](https://global.discourse-cdn.com/uipath/original/4X/c/7/b/c7b057ba2f079663afd15503405fb1a6c5096d74.png)  
 ![import problem](https://global.discourse-cdn.com/uipath/original/4X/7/1/3/713f3a7b15fe61895adf875aaec71dfd23f5c135.png)

---

<div class="post-metadata">

**Author:** ![jack.chan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/jack.chan/32/176616_2.png) [@jack.chan](https://forum.uipath.com/u/jack.chan)\
**Post date:** [April 26, 2022, 12:33pm UTC](https://forum.uipath.com/t/python-integration-pipe-is-broken/418196/3 "2022-04-26T12:33:46Z")

</div>

does this help?

> [@Python : Pipe is broken](https://forum.uipath.com/t/python-pipe-is-broken/416962/4):
>
> Hello, I have figured out the issues and fixed them. The actual issue was I have two python versions installed on the windows machine which cause the trouble. When is initialize the bot it takes the default python and pip environment while invoking the python process. What I did was add the python path on the system environment variable to the local machine so that it will alias to the required version and also added the pip environment folder into the system environment variable. To get the…

---

<div class="post-metadata">

**Author:** ![Hari\_Balaji](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hari_balaji/32/297703_2.png) [@Hari\_Balaji](https://forum.uipath.com/u/Hari_Balaji)\
**Post date:** [April 27, 2022, 7:38am UTC](https://forum.uipath.com/t/python-integration-pipe-is-broken/418196/4 "2022-04-27T07:38:42Z")

</div>

@Hisham_Alshareef

Could you please try placing the import Statements inside the function and Check?

Example:

```auto
 def regonize(full_name):
        from compreface import CompreFace
        from compreface.service import RecognitionService
        return full_name

```

Also, check the pip path on the system environment variables.

---

<div class="post-metadata">

**Author:** ![Hisham\_Alshareef](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hisham_alshareef/32/300280_2.png) [@Hisham\_Alshareef](https://forum.uipath.com/u/Hisham_Alshareef)\
**Post date:** [April 27, 2022, 9:11am UTC](https://forum.uipath.com/t/python-integration-pipe-is-broken/418196/5 "2022-04-27T09:11:05Z")

</div>

Thank you @Hari_Balaji

It seems the problem with the library itself. Have you faced a similar issue?

Regarding to the Pip path it is already checked and has no problem.

---

<div class="post-metadata">

**Author:** ![Hari\_Balaji](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hari_balaji/32/297703_2.png) [@Hari\_Balaji](https://forum.uipath.com/u/Hari_Balaji)\
**Post date:** [April 28, 2022, 5:27pm UTC](https://forum.uipath.com/t/python-integration-pipe-is-broken/418196/6 "2022-04-28T17:27:58Z")

</div>

@Hisham_Alshareef

Could you please provide more details regarding the library you are using?

Thanks!

---

<div class="post-metadata">

**Author:** ![Hisham\_Alshareef](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hisham_alshareef/32/300280_2.png) [@Hisham\_Alshareef](https://forum.uipath.com/u/Hisham_Alshareef)\
**Post date:** [April 29, 2022, 1:16pm UTC](https://forum.uipath.com/t/python-integration-pipe-is-broken/418196/7 "2022-04-29T13:16:54Z")

</div>

@Hari_Balaji

The library i am using is

CompreFace — Open source Face Recognition Service | Exadel

---

<div class="post-metadata">

**Author:** ![Hisham\_Alshareef](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hisham_alshareef/32/300280_2.png) [@Hisham\_Alshareef](https://forum.uipath.com/u/Hisham_Alshareef)\
**Post date:** [May 8, 2022, 6:38am UTC](https://forum.uipath.com/t/python-integration-pipe-is-broken/418196/8 "2022-05-08T06:38:51Z")

</div>

@Hari_Balaji

So have you faced a similar issue?

---

<div class="post-metadata">

**Author:** ![Rahul\_Unnikrishnan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/rahul_unnikrishnan/32/464046_2.png) [@Rahul\_Unnikrishnan](https://forum.uipath.com/u/Rahul_Unnikrishnan)\
**Post date:** [May 8, 2022, 6:50am UTC](https://forum.uipath.com/t/python-integration-pipe-is-broken/418196/9 "2022-05-08T06:50:38Z")

</div>

Hello @Hisham_Alshareef ,

SO from the IDE, is it working fine and only if you are invoking it using the uipath its throwing some error? If its working in IDE, can you check to which python version IDE is configured and can you try giving the same in UiPATH as well.

---

<div class="post-metadata">

**Author:** ![Hisham\_Alshareef](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hisham_alshareef/32/300280_2.png) [@Hisham\_Alshareef](https://forum.uipath.com/u/Hisham_Alshareef)\
**Post date:** [May 8, 2022, 7:00am UTC](https://forum.uipath.com/t/python-integration-pipe-is-broken/418196/10 "2022-05-08T07:00:50Z")

</div>

Hello @Rahul_Unnikrishnan

It is working fine from the IDE ,only in the UIPath when i invoking the method it throws me that error (Pipe is broken) . And I gave the UIPath the same version as it is in the IDE which is Python 3.8.10

---

<div class="post-metadata">

**Author:** ![kirrrus22](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/kirrrus22/32/177051_2.png) [@kirrrus22](https://forum.uipath.com/u/kirrrus22)\
**Post date:** [May 9, 2022, 11:02am UTC](https://forum.uipath.com/t/python-integration-pipe-is-broken/418196/11 "2022-05-09T11:02:09Z")

</div>

Hi I face a similar issue, were you able to solve this?

---

<div class="post-metadata">

**Author:** ![Hisham\_Alshareef](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hisham_alshareef/32/300280_2.png) [@Hisham\_Alshareef](https://forum.uipath.com/u/Hisham_Alshareef)\
**Post date:** [May 10, 2022, 6:14am UTC](https://forum.uipath.com/t/python-integration-pipe-is-broken/418196/12 "2022-05-10T06:14:19Z")

</div>

The Python library I am using can give an API result, so I used Http request to call the API result instead of python integration, because regarding to Python integration it seems there is no solution yet.

---

<div class="post-metadata">

**Author:** ![kirrrus22](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/kirrrus22/32/177051_2.png) [@kirrrus22](https://forum.uipath.com/u/kirrrus22)\
**Post date:** [May 11, 2022, 7:04am UTC](https://forum.uipath.com/t/python-integration-pipe-is-broken/418196/13 "2022-05-11T07:04:13Z")

</div>

Thank you 😌

---

<div class="post-metadata">

**Author:** ![alexandru](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/alexandru/32/52917_2.png) [@alexandru](https://forum.uipath.com/u/alexandru)\
**Post date:** [June 13, 2022, 11:20am UTC](https://forum.uipath.com/t/python-integration-pipe-is-broken/418196/15 "2022-06-13T11:20:40Z")

</div>

If you are using legacy-windows make sure python is installed as 32-bit.  
If you are using windows or cross-platform make sure python is installed as 64-bit.

---

<div class="post-metadata">

**Author:** ![Bilal\_Zafri1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/bilal_zafri1/32/280731_2.png) [@Bilal\_Zafri1](https://forum.uipath.com/u/Bilal_Zafri1)\
**Post date:** [July 23, 2023, 9:27am UTC](https://forum.uipath.com/t/python-integration-pipe-is-broken/418196/16 "2023-07-23T09:27:40Z")

</div>

The issue generally comes when UiPath is unable to find the required library, below are the steps you can follow to confirm and fix it.

1. Go to the script location where your Python script is present.
2. Open CMD at that particular location.
3. Run your Python script using cmd.
4. If it gives the module not found an error, install it again in that location using cmd and verify again.

Hope this help!
