PlatformIO Install keeps failing.
I've uninstalled and reinstalled both the extension and VSCode, but it keeps failing whenever I want t install. I don't know if it helps, but here's what I'm getting in the debug console.
with Popen(*popenargs, **kwargs) as process: File "C:\Users\comp.platformio\python3\lib\subprocess.py", line 800, in init restore_signals, start_new_session) File "C:\Users\comp.platformio\python3\lib\subprocess.py", line 1207, in _execute_child startupinfo) PermissionError: [WinError 5] Access is denied at c:\Users\comp.vscode\extensions\platformio.platformio-ide-2.2.1\node_modules\platformio-node-helpers\dist\index.js:1:879275 at ChildProcess.c (c:\Users\comp.vscode\extensions\platformio.platformio-ide-2.2.1\node_modules\platformio-node-helpers\dist\index.js:1:879169) at ChildProcess.emit (events.js:223:5) at ChildProcess.cp.emit (c:\Users\comp.vscode\extensions\platformio.platformio-ide-2.2.1\node_modules\cross-spawn\lib\enoent.js:34:29) at maybeClose (internal/child_process.js:1021:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) t.log @ console.ts:112 $logExtensionHostMessage @ remoteConsoleUtil.ts:11 _doInvokeHandler @ rpcProtocol.ts:396 _invokeHandler @ rpcProtocol.ts:330 _receiveRequest @ rpcProtocol.ts:269 _receiveOneMessage @ rpcProtocol.ts:208 (anonymous) @ rpcProtocol.ts:90 fire @ event.ts:525 fire @ ipc.net.ts:449 _receiveMessage @ ipc.net.ts:785 (anonymous) @ ipc.net.ts:642 fire @ event.ts:525 acceptChunk @ ipc.net.ts:191 (anonymous) @ ipc.net.ts:191 t @ ipc.net.ts:925 emit @ events.js:223 addChunk @ _stream_readable.js:309 readableAddChunk @ _stream_readable.js:290 Readable.push @ _stream_readable.js:224 onStreamRead @ internal/stream_base_commons.js:181 console.ts:137 [Extension Host] runCommand C:\Users\comp.platformio\python3\python.exe (2) ["-c", "import sys;assert sys.version_info >= (2, 7);print(sys.executable)"] {} console.ts:137 [Extension Host] runCommand C:\Users\comp.platformio\python3\python.exe ["C:\Users\comp.platformio.cache\tmp\get-platformio-0.3.5.py"] {spawnOptions: {…}}
and the popup window
with Popen(*popenargs, **kwargs) as process: File "C:\Users\comp.platformio\python3\lib\subprocess.py", line 800, in init restore_signals, start_new_session) File "C:\Users\comp.platformio\python3\lib\subprocess.py", line 1207, in _execute_child startupinfo) PermissionError: [WinError 5] Access is denied at c:\Users\comp.vscode\extensions\platformio.platformio-ide-2.2.1\node_modules\platformio-node-helpers\dist\index.js:1:879275 at ChildProcess.c (c:\Users\comp.vscode\extensions\platformio.platformio-ide-2.2.1\node_modules\platformio-node-helpers\dist\index.js:1:879169) at ChildProcess.emit (events.js:223:5) at ChildProcess.cp.emit (c:\Users\comp.vscode\extensions\platformio.platformio-ide-2.2.1\node_modules\cross-spawn\lib\enoent.js:34:29) at maybeClose (internal/child_process.js:1021:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) t.log @ console.ts:112 $logExtensionHostMessage @ remoteConsoleUtil.ts:11 _doInvokeHandler @ rpcProtocol.ts:396 _invokeHandler @ rpcProtocol.ts:330 _receiveRequest @ rpcProtocol.ts:269 _receiveOneMessage @ rpcProtocol.ts:208 (anonymous) @ rpcProtocol.ts:90 fire @ event.ts:525 fire @ ipc.net.ts:449 _receiveMessage @ ipc.net.ts:785 (anonymous) @ ipc.net.ts:642 fire @ event.ts:525 acceptChunk @ ipc.net.ts:191 (anonymous) @ ipc.net.ts:191 t @ ipc.net.ts:925 emit @ events.js:223 addChunk @ _stream_readable.js:309 readableAddChunk @ _stream_readable.js:290 Readable.push @ _stream_readable.js:224 onStreamRead @ internal/stream_base_commons.js:181 console.ts:137 [Extension Host] runCommand C:\Users\comp.platformio\python3\python.exe (2) ["-c", "import sys;assert sys.version_info >= (2, 7);print(sys.executable)"] {} console.ts:137 [Extension Host] runCommand C:\Users\comp.platformio\python3\python.exe ["C:\Users\comp.platformio.cache\tmp\get-platformio-0.3.5.py"] {spawnOptions: {…}}
Posted Dec 27, 2020, 2:08 AM UTC
Please read the logs carefully.
The log shows PermissionError:[WinError 5] access is denied message.
So, what do I do with that info?
Please check PlatformIO forum and/or search google/bing/duckduckgo
and/or find the solution on stackoverflow.
It would be something easy like permissions to folder and logged user permission.
Thanks, it was the antivirus.
Glad it helped. Appreciate you sharing cause. Enjoy.