# RobotCode - Invalid Python version for workspace folder

**URL:** <https://forum.robotframework.org/t/robotcode-invalid-python-version-for-workspace-folder/6992>\
**Category:** Visual Studio Code(ium)\
**Created:** [13 March 2024 13:12 UTC](https://forum.robotframework.org/t/robotcode-invalid-python-version-for-workspace-folder/6992 "2024-03-13T13:12:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MartinX](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/martinx/32/4936_2.png) [@MartinX](https://forum.robotframework.org/u/MartinX)\
**Post date:** [13 March 2024 13:12 UTC](https://forum.robotframework.org/t/robotcode-invalid-python-version-for-workspace-folder/6992/1 "2024-03-13T13:12:20Z")

</div>

Hi Everyone,

When trying to set up RobotCode for VS Code I get the following Error:

**Invalid python version for workspace folder ‘ikea\_sture’. Only python version \>= 3.8 supported. Please update to a newer python version or select a valid python environment.**

Now I managed to get python.pipenvPath to work in .vscode/settings.json

From Vscode Terminal:

(common-resources-Gj3KZnuR) masys@redhat:~/ikea\_sture/autotest$ python --version  
Python 3.9.18  
(common-resources-Gj3KZnuR) masys@redhat:~/ikea\_sture/autotest$ which python  
~/.local/share/virtualenvs/common-resources-Gj3KZnuR/bin/python

As seen above my python version is \>= 3.8

I have specifield:

“robotcode.python”: “~/.local/share/virtualenvs/common-resources-Gj3KZnuR/bin/python”,

Why do I still get the above error message?

BR

MartinX

---

<div class="post-metadata">

**Author:** ![daniel](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/daniel/32/1492_2.png) [@daniel](https://forum.robotframework.org/u/daniel)\
**Post date:** [13 March 2024 17:59 UTC](https://forum.robotframework.org/t/robotcode-invalid-python-version-for-workspace-folder/6992/2 "2024-03-13T17:59:20Z")

</div>

did you try the normal vscode way to select the python interpreter? see here:

> **[Using Python Environments in Visual Studio Code](https://code.visualstudio.com/docs/python/environments#_working-with-python-interpreters)**
>
> Configuring Python Environments in Visual Studio Code

and remove the `robotcode.python` setting, you normally don’t need this.

And why you need to change the ` python.pipenvPath` setting?

---

<div class="post-metadata">

**Author:** ![MartinX](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/martinx/32/4936_2.png) [@MartinX](https://forum.robotframework.org/u/MartinX)\
**Post date:** [14 March 2024 10:47 UTC](https://forum.robotframework.org/t/robotcode-invalid-python-version-for-workspace-folder/6992/4 "2024-03-14T10:47:49Z")

</div>

Removing robotcode.python and python.pipenvPath and then selecting Python interpreter by CTRL+SHIT+P worked! TY

BR

Martin

---

<div class="post-metadata">

**Author:** ![daniel](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/daniel/32/1492_2.png) [@daniel](https://forum.robotframework.org/u/daniel)\
**Post date:** [15 March 2024 10:27 UTC](https://forum.robotframework.org/t/robotcode-invalid-python-version-for-workspace-folder/6992/5 "2024-03-15T10:27:12Z")

</div>

glad to hear that!
