Run Python Script That Has Import Module

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

@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

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.