Python Scope in UIPath

I’m using a Python Scope function in StudioX and it will run a test script just fine; however, as soon as I try and import a pandas package, it fails and says “pandas module not found.” The script runs just fine in spyder/visual studio code so it’s definitely a UiPath issue. How can I point UiPath towards where the pandas (and others) package is located?

@dicianolucas

Welcome to the community

Did you happen to fill the path in the python scope activity?

Is the path variable in env variables filled? I hope you are pointing to right path and there is only one instance

Alternately try using load python script activity to load pandas

https://docs.uipath.com/activities/other/latest/user-guide/load-script

Cheers

The path is filled out to point to the correct dll file. there is only one instance on the machine. import os or import openpyxl works, but importing pandas or numpy suddenly generates a “module not found” error. Load script was tried but it created a “pipe is broken” error.

@dicianolucas

The path is to be the python installation folder and not to any file

and I hope you are using python 3.10 below

cheers

Hi, Have you tried executing simple Python scripts in StudioX, If so can you send that project file?
I have tried on my own but, I don’t get any outputs also no errors too.