# I'm getting an error "import robot" in VSCode

**URL:** <https://forum.robotframework.org/t/im-getting-an-error-import-robot-in-vscode/5227>\
**Category:** Robot Framework\
**Created:** [31 January 2023 05:26 UTC](https://forum.robotframework.org/t/im-getting-an-error-import-robot-in-vscode/5227 "2023-01-31T05:26:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nyxalexa](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/nyxalexa/32/1726_2.png) [@nyxalexa](https://forum.robotframework.org/u/nyxalexa)\
**Post date:** [31 January 2023 05:26 UTC](https://forum.robotframework.org/t/im-getting-an-error-import-robot-in-vscode/5227/1 "2023-01-31T05:26:39Z")

</div>

I’m getting this error while using VSCode, my tests are working fine, do you guys have any idea how to fix this? Thank you.

![image (1)](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/3/35ef5717efaa9f41a3072051edb50cafb5a774c2.png)

---

<div class="post-metadata">

**Author:** ![jschultz](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@jschultz](https://forum.robotframework.org/u/jschultz)\
**Post date:** [3 February 2023 17:10 UTC](https://forum.robotframework.org/t/im-getting-an-error-import-robot-in-vscode/5227/2 "2023-02-03T17:10:14Z")

</div>

Did you find a solution for this? I’m having the same issue.

---

<div class="post-metadata">

**Author:** ![nyxalexa](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/nyxalexa/32/1726_2.png) [@nyxalexa](https://forum.robotframework.org/u/nyxalexa)\
**Post date:** [3 February 2023 17:15 UTC](https://forum.robotframework.org/t/im-getting-an-error-import-robot-in-vscode/5227/3 "2023-02-03T17:15:24Z")

</div>

I tried to reinstall selenium but different version  
selenium==4.2.0

---

<div class="post-metadata">

**Author:** ![Kajawek](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@Kajawek](https://forum.robotframework.org/u/Kajawek)\
**Post date:** [25 August 2023 13:04 UTC](https://forum.robotframework.org/t/im-getting-an-error-import-robot-in-vscode/5227/4 "2023-08-25T13:04:14Z")

</div>

Did you find a solution for this? I’m having the same issue.  
@nyxalexa is issue resolved by updating selenium version .

---

<div class="post-metadata">

**Author:** ![HBSiga](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/hbsiga/32/3641_2.png) [@HBSiga](https://forum.robotframework.org/u/HBSiga)\
**Post date:** [24 March 2024 19:10 UTC](https://forum.robotframework.org/t/im-getting-an-error-import-robot-in-vscode/5227/5 "2024-03-24T19:10:38Z")

</div>

The way i managed to fix this issue was ctrl+sift+p and run this  
.net restart language server  
 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/c/cf535f472b53c7bebb2ed1c90de9ba57464143e7.png)
