platformio-core-installer icon indicating copy to clipboard operation
platformio-core-installer copied to clipboard

Installation Manager

Open PTT3108 opened this issue 11 months ago • 1 comments

%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.95.0 PIO IDE: v1.0.4 System: Windows_NT, 10.0.22631, x64

%23 Exception

Error: Error: Command '['C:\\Users\\PhamTung\\.platformio\\penv\\Scripts\\python.exe', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
C:\Espressif\tools\idf-python\3.11.2\python.exe: No module named virtualenv
C:\Espressif\tools\idf-python\3.11.2\python.exe: No module named virtualenv
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\PhamTung\.platformio\.cache\tmp\virtualenv.pyz\__main__.py", line 178, in <module>
File "C:\Users\PhamTung\.platformio\.cache\tmp\virtualenv.pyz\__main__.py", line 174, in run
File "C:\Users\PhamTung\.platformio\.cache\tmp\virtualenv.pyz\virtualenv\__main__.py", line 18, in run
File "C:\Users\PhamTung\.platformio\.cache\tmp\virtualenv.pyz\virtualenv\run\__init__.py", line 33, in cli_run
File "C:\Users\PhamTung\.platformio\.cache\tmp\virtualenv.pyz\virtualenv\run\session.py", line 46, in run
File "C:\Users\PhamTung\.platformio\.cache\tmp\virtualenv.pyz\virtualenv\run\session.py", line 65, in _activate
File "C:\Users\PhamTung\.platformio\.cache\tmp\virtualenv.pyz\virtualenv\activation\via_template.py", line 38, in generate
File "C:\Users\PhamTung\.platformio\.cache\tmp\virtualenv.pyz\virtualenv\activation\via_template.py", line 55, in _generate
File "C:\Users\PhamTung\.platformio\.cache\tmp\virtualenv.pyz\virtualenv\activation\via_template.py", line 73, in instantiate_template
File "C:\Users\PhamTung\.platformio\.cache\tmp\virtualenv.pyz\virtualenv\activation\via_template.py", line 14, in read_binary
File "importlib\resources\_common.py", line 22, in files
File "importlib\resources\_common.py", line 66, in from_package
File "importlib\resources\readers.py", line 50, in files
File "zipfile.py", line 2385, in __init__
File "zipfile.py", line 2261, in make
File "zipfile.py", line 1299, in __init__
File "zipfile.py", line 1366, in _RealGetContents
zipfile.BadZipFile: File is not a zip file
  WARNING: Skipping pip as it is not installed.
WARNING: There was an error checking the latest version of pip.
No pyvenv.cfg file
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\\PhamTung\\.platformio\\penv\\Scripts\\python.exe', '-m', 'pip', 'install', '-U', 'https://api.github.com/repos/pioarduino/platformio-core/zipball/v6.1.16']' returned non-zero exit status 106.
-> Installer version: 1.2.3
Platform: Windows-10
Python version: 3.11.2 (tags/v3.11.2:878ead1, Feb  7 2023, 16:38:35) [MSC v.1934 64 bit (AMD64)]
Python path: C:\Espressif\tools\idf-python\3.11.2\python.exe
Creating a virtual environment at C:\Users\PhamTung\.platformio\penv
Updating Python package manager (PIP) in the virtual environment
Requirement already satisfied: pip in c:\users\phamtung\.platformio\penv\lib\site-packages (23.2.1)
Collecting pip
Obtaining dependency information for pip from https://files.pythonhosted.org/packages/ef/7d/500c9ad20238fcfcb4cb9243eede163594d7020ce87bd9610c9e02771876/pip-24.3.1-py3-none-any.whl.metadata
Downloading pip-24.3.1-py3-none-any.whl.metadata (3.7 kB)
Downloading pip-24.3.1-py3-none-any.whl (1.8 MB)
 ---------------------------------------- 1.8/1.8 MB 359.0 kB/s eta 0:00:00
Installing collected packages: pip
Attempting uninstall: pip
Successfully installed pip-24.3.1
PIP has been successfully updated!
Virtual environment has been successfully created!
Installing PlatformIO Core

	at c:\Users\PhamTung\.vscode\extensions\pioarduino.pioarduino-ide-1.0.4\node_modules\pioarduino-node-helpers\dist\index.js:1:5262
	at ChildProcess.d (c:\Users\PhamTung\.vscode\extensions\pioarduino.pioarduino-ide-1.0.4\node_modules\pioarduino-node-helpers\dist\index.js:1:4560)
	at ChildProcess.emit (node:events:519:28)
	at ChildProcess.emit (node:domain:488:12)
	at maybeClose (node:internal/child_process:1105:16)
	at ChildProcess._handle.onexit (node:internal/child_process:305:5)

PTT3108 avatar Oct 31 '24 13:10 PTT3108