VSCode: 1.88.1
PIO IDE: v3.3.3
System: Windows_NT, 10.0.22631, x64
%23 Exception
Error: Error: Command '['C:\\Users\\User\\.platformio\\penv\\Scripts\\python.exe', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
C:\Users\User\.platformio\python3\python.exe: No module named virtualenv
C:\Users\User\.platformio\python3\python.exe: No module named virtualenv
error: subprocess-exited-with-error
python setup.py egg_info did not run successfully.
exit code: 101
[27 lines of output]
Unable to create process using '"C:\Users\User\.platformio\python3\python.exe" -c "
exec(compile('''
%23 This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
%23
%23 - It imports setuptools before invoking setup.py, to enable projects that directly
%23 import from `distutils.core` to work with newer packaging standards.
%23 - It provides a clear error message when setuptools is not installed.
%23 - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
%23 setuptools doesn't think the script is `-c`. This avoids the following warning:
%23 manifest_maker: standard file '-c' not found\".
%23 - It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize
try:
import setuptools
except ImportError as error:
print(
\"ERROR: Can not execute `setup.py` since setuptools is not available in \"
\"the build environment.\",
file=sys.stderr,
)
sys.exit(1)
__file__ = %r
sys.argv[0] = __file__
if os.path.exists(__f
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Encountered error while generating package metadata.
See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Error: Could not install PlatformIO Core: If you have antivirus/firewall/defender software in a system, try to disable it for a while.
Command '['C:\Users\User\.platformio\penv\Scripts\python.exe', '-m', 'pip', 'install', '-U', 'platformio']' returned non-zero exit status 1.
-> Installer version: 1.2.2
Platform: Windows-10
Python version: 3.11.7 (tags/v3.11.7:fa7a6f2, Dec 4 2023, 19:24:49) [MSC v.1937 64 bit (AMD64)]
Python path: C:\Users\User.platformio\python3\python.exe
Creating a virtual environment at C:\Users\User.platformio\penv
created virtual environment CPython3.11.7.final.0-64 in 868ms
creator CPython3Windows(dest=C:\Users\User.platformio\penv, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=C:\Users\User\AppData\Local\pypa\virtualenv)
added seed packages: pip==24.0, setuptools==69.1.0, wheel==0.42.0
activators BashActivator,BatchActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
Updating Python package manager (PIP) in the virtual environment
Requirement already satisfied: pip in c:\users\user.platformio\penv\lib\site-packages (24.0)
PIP has been successfully updated!
Virtual environment has been successfully created!
Installing PlatformIO Core
Collecting platformio
Using cached platformio-6.1.14.tar.gz (238 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
at c:\Users\User\.vscode\extensions\platformio.platformio-ide-3.3.3-win32-x64\node_modules\platformio-node-helpers\dist\index.js:1:5323
at ChildProcess.i (c:\Users\User\.vscode\extensions\platformio.platformio-ide-3.3.3-win32-x64\node_modules\platformio-node-helpers\dist\index.js:1:4621)
at ChildProcess.emit (node:events:517:28)
at ChildProcess.emit (node:domain:489:12)
at maybeClose (node:internal/child_process:1098:16)
at ChildProcess._handle.onexit (node:internal/child_process:303:5)
%23 Description of problem Leave a comment...
BEFORE SUBMITTING, PLEASE SEARCH FOR DUPLICATES IN
https://github.com/platformio/platformio-vscode-ide/issues%3Fq=is%3Aissue
%23 Configuration
VSCode: 1.88.1 PIO IDE: v3.3.3 System: Windows_NT, 10.0.22631, x64
%23 Exception
Encountered error while generating package metadata.
See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details. Error: Could not install PlatformIO Core: If you have antivirus/firewall/defender software in a system, try to disable it for a while. Command '['C:\Users\User\.platformio\penv\Scripts\python.exe', '-m', 'pip', 'install', '-U', 'platformio']' returned non-zero exit status 1. -> Installer version: 1.2.2 Platform: Windows-10 Python version: 3.11.7 (tags/v3.11.7:fa7a6f2, Dec 4 2023, 19:24:49) [MSC v.1937 64 bit (AMD64)] Python path: C:\Users\User.platformio\python3\python.exe Creating a virtual environment at C:\Users\User.platformio\penv created virtual environment CPython3.11.7.final.0-64 in 868ms creator CPython3Windows(dest=C:\Users\User.platformio\penv, clear=False, no_vcs_ignore=False, global=False) seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=C:\Users\User\AppData\Local\pypa\virtualenv) added seed packages: pip==24.0, setuptools==69.1.0, wheel==0.42.0 activators BashActivator,BatchActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator Updating Python package manager (PIP) in the virtual environment Requirement already satisfied: pip in c:\users\user.platformio\penv\lib\site-packages (24.0) PIP has been successfully updated! Virtual environment has been successfully created! Installing PlatformIO Core Collecting platformio Using cached platformio-6.1.14.tar.gz (238 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'error'