I tried to invoke code which is runing correctly in IDE, but when i try to invoke it in UiPath i receive error “Pipe is broken”. My code do not return anything so it should not be related to size of the object. Here is my python code, it is simply downloading images from api and sending via mail:
@echo off
“C:\Users\User2\PycharmProjects\untitled1\venv\Scripts\python.exe” “C:\Users\User2\PycharmProjects\untitled1\test.py”
pause
This returned error - did not found “requests” package (which im using in code): @echo off
“C:\Users\User2\AppData\Local\Programs\Python\Python38\python.exe” “C:\Users\User2\PycharmProjects\untitled1\test.py”
pause
So now, im using "“C:\Users\User\AppData\Local\Programs\Python\Python38” in Path properties in “Python scope” and it`s returing “pipe is broken” but i cannot use “C:\Users\User2\PycharmProjects\untitled1\venv\Scripts\python.exe” as it is returning failed to initialize python engine. Im stuck
I think the problem is with packages im using in script, and i dont know how to “link” them in the UiPath, i should have any pipe erorr as im not even working on files.
Thank you, your post guided me to the problem. When i was installing package in my PyCharm IDE it was installing only localy, so there was nothing installed inside:
Therefore uipath were throwing “pipe is broken” error. I have installed packages required for project using windows command line and it installed finally packages where i wanted. Now i can run my python script. Marking as solved.