RobotCode - Invalid Python version for workspace folder

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

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

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

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

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

BR

Martin

2 Likes

glad to hear that!

2 Likes