robotframework

RobotFrameWork- some Libraries are not imported


I'm new to RobotFramework. I installed vs code with robocorp extensions. i also installed several libraries like:

the issue is that some libraries are not imported as expected, like:

However,

imported without errors what am i doing wrong?

see screenshot attached:

screencaplibrary jsonlibrary


Solution

  • It seems like you haven't set your pythonpath for robotframework.

    To do this go to the Robot Framework Language Server extension and go to extension settings.

    In there you'll find: Robot > Language-server: Python enter image description here

    and: Robot > Python: Executable enter image description here

    Set both of them to your python.exe path and restart vsc.