Invoke Python Method: Pipe is Broken Error

Hello,
I am experiencing a peculiar issue with my Python integration in UiPath. I have sample script that works fine with other libraries, but whenever I try to import scikit‑image, I get a “Pipe is broken” error.

from skimage import io
def main():
print(“Hello”)

Key Points:

  1. Other Scripts Work Fine
  2. Issue Only with scikit‑image.
  3. Environment Verification: I have verified that my Python environment (Python 3.9) has scikit‑image installed correctly along with its dependencies. Running the script directly in the command prompt works fine, but when executed through UiPath’s Python Scope, I get the “Pipe is broken” error.

@Ankit_Kumar2

  1. Do you have multiple versions installed?
  2. Was the installation done in a different location?
  3. Are you sending any data or is the script given above is what you are running?
  4. Try to check the event viewer logs which sometimes xna contain more details

Cheers

1 Like

Thank you @Anil_G for the response.

  1. There are two Python versions installed: 3.9 and 3.12. We are using 3.9, and all packages are installed for this version. However, we also tried running with only one version installed and still faced the same issue.
  2. The installation is at the default location.
  3. No data is being sent; this script is just for troubleshooting why skimage is causing the issue. The issue occurs only when using the skimage library; other scripts run without any issues. We cannot avoid using this library in the main script.
  4. UiPath is unable to find the skimage library, which seems to be the cause of the “pipe is broken” error.

Solution:
Yesterday, we downgraded multiple packages and tried different methods, but it didn’t work. Today, it is working fine. Looks like we didn’t restart the system after downgrading the packages. The current skimage version is 0.18.0, which is working fine.
For us, downgrading the skimage package resolved the issue. We also faced a similar issue when using numpy and cv2 together. In that case, we discovered a compatibility issue between versions, which was also resolved by downgrading numpy.

Still, it’s difficult to troubleshoot Python script errors in UiPath as it always gives the same error message: “Pipe is broken.”
Thanks!

1 Like

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