Why the robot suddenly pop up this issue?Importing library 'RPA.Browser.Selenium' failed: ModuleNotFoundError: No module named 'RPA'

Importing library ‘RPA.Browser.Selenium’ failed: ModuleNotFoundError: No module named ‘RPA’
Traceback (most recent call last):
None

Has your environment built without any errors? Error message reference your local python(3.11). Are you trying to use your local set up?
You can reset your robot environment in VSCode using command palette(ctrl+shift+p) and selecting Robocorp: Clear Robocorp (RCC) enviroments and restart Robocorp Code

1 Like

Hi raivo, i did try the Robocorp: Clear Robocorp (RCC) enviroments and restart Robocorp Code
and it shows [After restarting the robocorp, i try to run the robot it stills showing that the RPA not found]:
clearenv

errorexpected

Is this because of the interpreter? When i select the interpreter it has only the:
interpreter

Also, in the robot framework extension i added the path as follow:

What should i do now?

With Robocorp tooling you shouldn’t set anything. For your robot run command
image
And see if that would solve your issue.

1 Like

Do u mean that I need to delete the path that i added in the robocorp extension?
So after i try deleted it and ‘Set python executable based on robot.yaml’, it show:

What should I do now?

This error comes already from robot, probably from Open Available Browser. you should see more details from robot generated log.html file

1 Like

Thanks Raivo, finally it works as I changed the Open Browser to Open Available Browser~
Thanks for saving my life :smiling_face_with_three_hearts:
Wish u have a nice day

1 Like