Hi @vikaskulhari, thanks for replying but as i mentioned my script not using def or any method that need return something, so i’m afraid this doesnt helps
@damonyl - The thing is Python is a scripting language if code don’t have the class or function or definition or method but if you have used OOPS or the thing which I have mentioned it will work like programming language you are currently using it as scripting language.
Now if you want to use something like this you can use powershell activities to run you code or you can make the batch file and invoke it using UiPath.
Hope it will help you.
Hi all, thanks for giving your opinion, really appreciated.
Maybe let me clarify my problem and giving solution that solved mine problem.
I’m able to import package while using Anocanda, but if running with UiPath, need to pre-install in Python, where you can check it out from running Python 3.6, if your type import pandas (or any other package) it shown error, means you’ve not installed PIP yet. that’s the main reason make me failed also.
Action:- locate your python file and open “Scripts” folder, for me is (C:\Users\Damon\AppData\Local\Programs\Python\Python36\Scripts), copy this path and run CMD, type cd C:\Users\lida8002\AppData\Local\Programs\Python\Python36\Scripts and then type “pip install pandas”, replace pandas with any package you want to install.
In Uipath perspective, any script, for mine, not function or def function, still manage to run.
Activity in UiPath to be used, Load Python script and Run Python Script. that’s all