platformio / platformio-vscode-ide

PlatformIO IDE for VSCode: The next generation integrated development environment for IoT
https://marketplace.visualstudio.com/items?itemName=platformio.platformio-ide
Apache License 2.0
1.22k stars 195 forks source link

PIO can't find python interpreter while installing in ssh remote #3767

Closed EG-Julien closed 1 year ago

EG-Julien commented 1 year ago

Hi,

When I try to install PIO in SSH remote, it can't find python interpreter. I then got a pop-up wich tells me either to install it or to locate the executable (as shown below). pio_bug I have python 3.10.6 on my linux machine (remote) and python 3.11 on my windows machine (host). If I try to specify a path for the executable no matter what I write, PIO keeps saying it's an invalid path (on the picture I tried with python, but I also tried with python3 and others).

Note : python is a symbolic link to python3.

ls /usr/bin/ | grep python
activate-global-python-argcomplete3
dh_python3-ply
pvtkpython
pybabel-python3
python
python3
python3.10
python3.10-config
python3.10-coverage
python3-config
python3-coverage
python-argcomplete-check-easy-install-script3
python-argcomplete-tcsh3
register-python-argcomplete3
vtkpython-9.0
x86_64-linux-gnu-python3.10-config
x86_64-linux-gnu-python3-config

Error code given by PIO after aborting the installation:

Error: Can not find Python Interpreter. Please install Python 3.6 or above manually
    at ZA.whereIsPython (/home/julien/.vscode-server/extensions/platformio.platformio-ide-3.3.0-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:956687)
    at async ZA.install (/home/julien/.vscode-server/extensions/platformio.platformio-ide-3.3.0-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:959810)
    at async k.install (/home/julien/.vscode-server/extensions/platformio.platformio-ide-3.3.0-linux-x64/dist/extension.js:1:9248)
    at async /home/julien/.vscode-server/extensions/platformio.platformio-ide-3.3.0-linux-x64/dist/extension.js:1:45104...

Thanks for the help !

ivankravets commented 1 year ago

Should be fixed in the latest PlatformIO IDE for VSCode. Please update.