i have python script with import module from playwright like this
from playwright.sync_api import sync_playwright
when im running UiPath with load python script got errors
“Invoke Python Method: One or more errors occurred. (Error invoking Python method)”
Im beginner in UiPath, can you tell me how to solve it?
thanks
Anil_G
(Anil Gorthi)
December 3, 2023, 3:12am
2
@Abiyan_Bagus_Baskoro
Please open locals panel and open exception details from there to know the error
And did you point the libraries folder?
Is the imported library present there?
Is path variable added in the env variables?
Is the library installed in any specific environment or is it installed on the system directly?
Cheers
loginerror
(Maciej Kuźmicz)
December 6, 2023, 4:48pm
3
A slightly painful way to debug this would be to wrap your entire Python script in a Python try-catch that will return the Python exception message as a string.
You could then add bits of your script almost line by line and figure out the culprit.