Hi team,
I am facing some issues importing numpy and abydos libraries. If I test it directly in python (spyder, anaconda) it works, but when I try to run the same python code in UiPath does not work.
I could run a basic math operations (multiplications, add) python code in UiPath and got the expected result.
It means that I have configured correctly in UiPath, but when I try to import the numpy and abydos libraries the UiPath fails.
When I avoid to import numpy or abydos library the code works. But I try to import numpy or abydos fail.
Do you have any idea?
Thanks for your support!
Anil_G
(Anil Gorthi)
April 27, 2023, 6:18pm
2
@alonso.ortiz
Can you please open locals panel and see expand the exception details and check …that would provide more info on whats happening
And are the libraries installed on system? Or you installed on a different env on anaconda?(just a check…you might not miss this)
Cheers
Hi, thanks for answer. Yes, I have installed the libraries, abydos and numpy is bellow. Please look the following picture:
And the following picture is the error provided by UiPath Studio, and said “Pipe is broken” :
I assigned the following path in the scope activity: “C:\Users\USERNAME\Anaconda3”
Do I have to assign the all path where the libraries are located? for example: “C:\Users\USERNAME\Anaconda3\Lib\site-packages”
Anil_G
(Anil Gorthi)
April 27, 2023, 8:04pm
4
@alonso.ortiz
What is your python version?
depending on it you might need to provide the library path as well…in the respective field
Step-A: (Validate the Configuration parameters)
Check the Python exe file path location is properly specified in Python Scope properties
Check the installed Python version is 64-bit or 32-bit. In case of 32-bit version select x86
Specify the Python version installed. It is always better to specify the Python version rather selecting Auto.
[image]
Step-B:
Instead of using " Run Python Script " activity, use Load Python Script → Invoke Python Method → Get Python Object .
Remove the Print …
cheers
Hi,
My python version is 3.9.13. I tried but the issues still continue. Do you any UiPath example when you import numpy library?
Hi @alonso.ortiz ,
Did you happen to check the below post ? Were the packages installed using the command line ?
@muhammedyuzuak
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:
C:\Users\User2\AppData\Local\Programs\Python\Python38\Lib\site-packages
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.