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:
Other Scripts Work Fine
Issue Only with scikit‑image.
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.
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.
The installation is at the default location.
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.
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!