ERROR_INVALID_PYTHON installing VSCode plug-in

felixkasza
Posts: 2
Joined: Sun Dec 10, 2023 3:47 pm

ERROR_INVALID_PYTHON installing VSCode plug-in

Postby felixkasza » Sat Jan 20, 2024 7:45 am

Code: Select all

Downloading C:\Users\fk\.espressif\dist\idf-git-2.39.2-win64.zip...
idf-git-2.39.2-win64.zip has (28527) KB
idf-git-2.39.2-win64.zip progress: 0.06% (16.00 / 28526.53) KB
[… progress messages elided …]

Code: Select all

idf-git-2.39.2-win64.zip progress: 100.00% (28526.53 / 28526.53) KB
Installing C:\Users\fk\.espressif\tools\idf-git\2.39.2 ...
Extracted C:\Users\fk\.espressif\tools\idf-git\2.39.2 ...
idf-python-3.11.2-embed-win64.zip has (13776) KB
idf-python-3.11.2-embed-win64.zip progress: 0.12% (16.00 / 13775.83) KB
[… progress messages elided …]

Code: Select all

idf-python-3.11.2-embed-win64.zip progress: 100.00% (13775.83 / 13775.83) KB
Extracted C:\Users\fk\.espressif\tools\idf-python\3.11.2 ...
Looking in links: c:\temp\tmpyrdhkj2h

Processing c:\temp\tmpyrdhkj2h\setuptools-65.5.0-py3-none-any.whl

Processing c:\temp\tmpyrdhkj2h\pip-22.3.1-py3-none-any.whl

Installing collected packages: setuptools, pip

  WARNING: The scripts pip3.11.exe and pip3.exe are installed in 'C:\Users\fk\.espressif\tools\idf-python\3.11.2\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

Successfully installed pip-22.3.1 setuptools-65.5.0

C:\Users\fk\.espressif\tools\idf-python\3.11.2\python.exe is not valid. (ERROR_INVALID_PYTHON)
This happens when I install ESP-IDF 5.1.2 of 5.0.5 (no other versions tried) and the VSCode ESP-IDF plug-in under Windows 11 on a VM that was reset to the initial state after every attempt. Oh, and the download server (Github or Espressif) makes no difference as far as I can tell; I tried both.

Attempt #1. ESP-IDF into c:\esp, tools into c:\esp-idf into c:\esp\tools; plugin installed with "advanced" and these paths. ERROR_INVALID_PYTHON.

Attempt #2. ESP-IDF into its default paths, plugin installed as above. ERROR_INVALID_PYTHON.

#3. No pre-installed ESP_IDF, plug-in install does all the work ("advanced" with downloading)

I tried half a dozen additional combinations, but they all lead to:

C:\Users\fk\.espressif\tools\idf-python\3.11.2\python.exe is not valid. (ERROR_INVALID_PYTHON)

The path to python.exe varies according to what I am trying, but it is always correct: There really is a python.exe there, and it is the only one in the system.

Dear Espressif folks, under which condition(s) is the ERROR_INVALID_PYTHON raised? Knowing this might give me a hint on fixingthe problem. Thanks!

Cheers,
Felix.

jerive
Posts: 1
Joined: Sat Jan 20, 2024 6:14 pm

Re: ERROR_INVALID_PYTHON installing VSCode plug-in

Postby jerive » Sat Jan 20, 2024 6:18 pm

Hi Felix, I had the same issue, and this link helped me solve it: viewtopic.php?t=23976
Deleting idf-git and idf-python folders in C:\Espressif\tools and trying the installation again worked for me.

felixkasza
Posts: 2
Joined: Sun Dec 10, 2023 3:47 pm

Re: ERROR_INVALID_PYTHON installing VSCode plug-in

Postby felixkasza » Sun Jan 21, 2024 2:46 am

Thank you! I am much obliged!

Cheers,
Felix.

Who is online

Users browsing this forum: Bing [Bot] and 90 guests