microsoft / coding-pack-for-python

Documentation and issues for the VS Code Python installer.
Creative Commons Attribution 4.0 International
30 stars 4 forks source link

Installer v2021.219.3 error #69

Open betheashvin opened 2 years ago

betheashvin commented 2 years ago
<!--Describe your issue here-->

The file failed to install Python 3.8 and packages.

version: 2021.219.3
env:
```
os: win32
arch: x64
PATH: C:\Program Files\Google\Chrome\Application;C:\Program Files\Python38\Scripts\;C:\Program Files\Python38\;C:\Users\ashvi\AppData\Local\Programs\Python\Python39\Scripts;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\dotnet\;C:\Users\ashvi\AppData\Local\Microsoft\WindowsApps;;C:\Users\ashvi\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\ashvi\AppData\Roaming\npm;C:\Users\ashvi\.dotnet\tools
```
log:
Please paste the logs that have been copied to your clipboard here with Ctrl+V.info:

Started {"timestamp":"2022-06-17T16:58:44.768Z"} verbose: Ids: {"machineId":"b8f3689cb889a74a23586d3059b0dc2533d45599d53bbe290e483c6f5db03566","sessionId":"5c75e184-5692-4cc7-8ab4-103df94399e51655485124005","timestamp":"2022-06-17T16:58:44.770Z"} info: Detecting bundled binaries... {"timestamp":"2022-06-17T16:58:44.782Z"} info: Detecting packed Python... {"timestamp":"2022-06-17T16:58:44.782Z"} info: Detected packed Python at C:\Users\ashvi\AppData\Local\Temp\1oiP0mtgmNM17u55fLKvSpuSxU0\resources\binaries\bundled-python.zip {"timestamp":"2022-06-17T16:58:44.818Z"} info: Detecting packed VSCode... {"timestamp":"2022-06-17T16:58:44.818Z"} error: Failed to detect packed VSCode. {"timestamp":"2022-06-17T16:58:44.821Z"} info: Detecting packed extensions... {"timestamp":"2022-06-17T16:58:44.821Z"} info: Detected packed extensions: [{"path":"C:\Users\ashvi\AppData\Local\Temp\1oiP0mtgmNM17u55fLKvSpuSxU0\resources\binaries\exts\ms-python.gather.vsix"},{"path":"C:\Users\ashvi\AppData\Local\Temp\1oiP0mtgmNM17u55fLKvSpuSxU0\resources\binaries\exts\ms-python.python.vsix"},{"path":"C:\Users\ashvi\AppData\Local\Temp\1oiP0mtgmNM17u55fLKvSpuSxU0\resources\binaries\exts\vscode-pylance.vsix"}] {"timestamp":"2022-06-17T16:58:44.823Z"} info: Detected packed binaries: {"python":{"path":"C:\Users\ashvi\AppData\Local\Temp\1oiP0mtgmNM17u55fLKvSpuSxU0\resources\binaries\bundled-python.zip"},"extensions":[{"path":"C:\Users\ashvi\AppData\Local\Temp\1oiP0mtgmNM17u55fLKvSpuSxU0\resources\binaries\exts\ms-python.gather.vsix"},{"path":"C:\Users\ashvi\AppData\Local\Temp\1oiP0mtgmNM17u55fLKvSpuSxU0\resources\binaries\exts\ms-python.python.vsix"},{"path":"C:\Users\ashvi\AppData\Local\Temp\1oiP0mtgmNM17u55fLKvSpuSxU0\resources\binaries\exts\vscode-pylance.vsix"}],"timestamp":"2022-06-17T16:58:44.823Z"} info: Detecting installed components... {"timestamp":"2022-06-17T16:58:44.824Z"} info: Detecting installed Python... {"timestamp":"2022-06-17T16:58:44.824Z"} error: Failed to get registry key HKCU\Software\Python\PythonCodingPack\3.8\DisplayName. Encountered error: p: QUERY command exited with code 1:

ERROR: The system was unable to find the specified registry key or value. {"timestamp":"2022-06-17T16:58:44.884Z"} error: Encountered while detecting installed Python: Failed to get registry key HKCU\Software\Python\PythonCodingPack\3.8\DisplayName. Encountered error: p: QUERY command exited with code 1:

ERROR: The system was unable to find the specified registry key or value. {"timestamp":"2022-06-17T16:58:44.885Z"} info: Detecting installed VSCode... {"timestamp":"2022-06-17T16:58:44.885Z"} verbose: Looking for Code stable x64-user in x64 registry: HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall{771FD6B0-FA20-440A-A002-3B3BAC16DC50}_is1 {"timestamp":"2022-06-17T16:58:44.885Z"} info: Detected installed VSCode: Code stable x64-user is installed. {"timestamp":"2022-06-17T16:58:44.953Z"} info: Detecting installed extensions... {"timestamp":"2022-06-17T16:58:44.954Z"} info: Detected installed extensions: {"ms-python.python":true,"ms-python.vscode-pylance":true,"ms-python.gather":false,"ms-vsliveshare.vsliveshare":false} {"timestamp":"2022-06-17T16:58:44.955Z"} info: Detected installed components: {"vscode":{"name":"VSCode","homedir":"C:\Users\ashvi\AppData\Local\Programs\Microsoft VS Code\","version":"0","displayVersion":"1.68.1","product":{"kind":"user","arch":"x64","edition":"stable","appId":"{771FD6B0-FA20-440A-A002-3B3BAC16DC50}"}},"extensions":{"ms-python.python":true,"ms-python.vscode-pylance":true,"ms-python.gather":false,"ms-vsliveshare.vsliveshare":false},"isPythonPartiallyInstalled":false,"timestamp":"2022-06-17T16:58:44.956Z"} info: Starting to install VS Code and extensions... {"timestamp":"2022-06-17T16:59:18.932Z"} info: Attempting to install the following VS Code extensions: ["C:\Users\ashvi\AppData\Local\Temp\1oiP0mtgmNM17u55fLKvSpuSxU0\resources\binaries\exts\ms-python.gather.vsix","C:\Users\ashvi\AppData\Local\Temp\1oiP0mtgmNM17u55fLKvSpuSxU0\resources\binaries\exts\ms-python.python.vsix","C:\Users\ashvi\AppData\Local\Temp\1oiP0mtgmNM17u55fLKvSpuSxU0\resources\binaries\exts\vscode-pylance.vsix"] {"timestamp":"2022-06-17T16:59:18.934Z"} info: Currently installing extension ms-python.python from the extension marketplace... {"timestamp":"2022-06-17T16:59:18.934Z"} verbose: runVSCodeCommand: {"0":"--install-extension","1":"ms-python.python","timestamp":"2022-06-17T16:59:18.935Z"} info: Detecting installed VSCode... {"timestamp":"2022-06-17T16:59:18.935Z"} verbose: Looking for Code stable x64-user in x64 registry: HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall{771FD6B0-FA20-440A-A002-3B3BAC16DC50}_is1 {"timestamp":"2022-06-17T16:59:18.935Z"} info: Detected installed VSCode: Code stable x64-user is installed. {"timestamp":"2022-06-17T16:59:19.025Z"} verbose: Installed vscode: {"name":"VSCode","homedir":"C:\Users\ashvi\AppData\Local\Programs\Microsoft VS Code\","version":"0","displayVersion":"1.68.1","product":{"kind":"user","arch":"x64","edition":"stable","appId":"{771FD6B0-FA20-440A-A002-3B3BAC16DC50}"},"timestamp":"2022-06-17T16:59:19.026Z"} verbose: exec: C:\Users\ashvi\AppData\Local\Programs\Microsoft VS Code\Code.exe {"timestamp":"2022-06-17T16:59:19.027Z"} verbose: cli: C:\Users\ashvi\AppData\Local\Programs\Microsoft VS Code\bin\code.cmd {"timestamp":"2022-06-17T16:59:19.028Z"} info: Installing extensions... Extension 'ms-python.python' v2022.8.0 is already installed. Use '--force' option to update to latest version or provide '@' to install a specific version, for example: 'ms-python.python@1.2.3'. {"timestamp":"2022-06-17T16:59:19.814Z"} info: Successfully installed extension ms-python.python. {"timestamp":"2022-06-17T16:59:19.814Z"} info: Successfully installed extension ms-python.python from the extension marketplace. {"timestamp":"2022-06-17T16:59:19.814Z"} info: Currently installing extension ms-python.gather from the extension marketplace... {"timestamp":"2022-06-17T16:59:19.823Z"} verbose: runVSCodeCommand: {"0":"--install-extension","1":"ms-python.gather","timestamp":"2022-06-17T16:59:19.823Z"} info: Detecting installed VSCode... {"timestamp":"2022-06-17T16:59:19.823Z"} verbose: Looking for Code stable x64-user in x64 registry: HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall{771FD6B0-FA20-440A-A002-3B3BAC16DC50}_is1 {"timestamp":"2022-06-17T16:59:19.823Z"} info: Detected installed VSCode: Code stable x64-user is installed. {"timestamp":"2022-06-17T16:59:19.900Z"} verbose: Installed vscode: {"name":"VSCode","homedir":"C:\Users\ashvi\AppData\Local\Programs\Microsoft VS Code\","version":"0","displayVersion":"1.68.1","product":{"kind":"user","arch":"x64","edition":"stable","appId":"{771FD6B0-FA20-440A-A002-3B3BAC16DC50}"},"timestamp":"2022-06-17T16:59:19.900Z"} verbose: exec: C:\Users\ashvi\AppData\Local\Programs\Microsoft VS Code\Code.exe {"timestamp":"2022-06-17T16:59:19.902Z"} verbose: cli: C:\Users\ashvi\AppData\Local\Programs\Microsoft VS Code\bin\code.cmd {"timestamp":"2022-06-17T16:59:19.902Z"} info: Installing extensions... Installing extension 'ms-python.gather'... Extension 'ms-python.gather' v2022.3.0 was successfully installed. {"timestamp":"2022-06-17T16:59:23.908Z"} error: (node:5980) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use Code --trace-deprecation ... to show where the warning was created) {"timestamp":"2022-06-17T16:59:23.909Z"} info: Successfully installed extension ms-python.gather. {"timestamp":"2022-06-17T16:59:23.909Z"} info: Successfully installed extension ms-python.gather from the extension marketplace. {"timestamp":"2022-06-17T16:59:23.909Z"} info: Currently installing extension ms-python.vscode-pylance from the extension marketplace... {"timestamp":"2022-06-17T16:59:23.916Z"} verbose: runVSCodeCommand: {"0":"--install-extension","1":"ms-python.vscode-pylance","timestamp":"2022-06-17T16:59:23.916Z"} info: Detecting installed VSCode... {"timestamp":"2022-06-17T16:59:23.916Z"} verbose: Looking for Code stable x64-user in x64 registry: HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall{771FD6B0-FA20-440A-A002-3B3BAC16DC50}_is1 {"timestamp":"2022-06-17T16:59:23.917Z"} info: Detected installed VSCode: Code stable x64-user is installed. {"timestamp":"2022-06-17T16:59:23.996Z"} verbose: Installed vscode: {"name":"VSCode","homedir":"C:\Users\ashvi\AppData\Local\Programs\Microsoft VS Code\","version":"0","displayVersion":"1.68.1","product":{"kind":"user","arch":"x64","edition":"stable","appId":"{771FD6B0-FA20-440A-A002-3B3BAC16DC50}"},"timestamp":"2022-06-17T16:59:23.996Z"} verbose: exec: C:\Users\ashvi\AppData\Local\Programs\Microsoft VS Code\Code.exe {"timestamp":"2022-06-17T16:59:23.997Z"} verbose: cli: C:\Users\ashvi\AppData\Local\Programs\Microsoft VS Code\bin\code.cmd {"timestamp":"2022-06-17T16:59:23.998Z"} info: Installing extensions... Extension 'ms-python.vscode-pylance' v2022.6.20 is already installed. Use '--force' option to update to latest version or provide '@' to install a specific version, for example: 'ms-python.vscode-pylance@1.2.3'. {"timestamp":"2022-06-17T16:59:25.225Z"} info: Successfully installed extension ms-python.vscode-pylance. {"timestamp":"2022-06-17T16:59:25.225Z"} info: Successfully installed extension ms-python.vscode-pylance from the extension marketplace. {"timestamp":"2022-06-17T16:59:25.225Z"} info: Currently installing extension ms-vsliveshare.vsliveshare from the extension marketplace... {"timestamp":"2022-06-17T16:59:25.230Z"} verbose: runVSCodeCommand: {"0":"--install-extension","1":"ms-vsliveshare.vsliveshare","timestamp":"2022-06-17T16:59:25.230Z"} info: Detecting installed VSCode... {"timestamp":"2022-06-17T16:59:25.231Z"} verbose: Looking for Code stable x64-user in x64 registry: HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall{771FD6B0-FA20-440A-A002-3B3BAC16DC50}_is1 {"timestamp":"2022-06-17T16:59:25.231Z"} info: Detected installed VSCode: Code stable x64-user is installed. {"timestamp":"2022-06-17T16:59:25.329Z"} verbose: Installed vscode: {"name":"VSCode","homedir":"C:\Users\ashvi\AppData\Local\Programs\Microsoft VS Code\","version":"0","displayVersion":"1.68.1","product":{"kind":"user","arch":"x64","edition":"stable","appId":"{771FD6B0-FA20-440A-A002-3B3BAC16DC50}"},"timestamp":"2022-06-17T16:59:25.329Z"} verbose: exec: C:\Users\ashvi\AppData\Local\Programs\Microsoft VS Code\Code.exe {"timestamp":"2022-06-17T16:59:25.331Z"} verbose: cli: C:\Users\ashvi\AppData\Local\Programs\Microsoft VS Code\bin\code.cmd {"timestamp":"2022-06-17T16:59:25.332Z"} info: Installing extensions... Installing extension 'ms-vsliveshare.vsliveshare'... Extension 'ms-vsliveshare.vsliveshare' v1.0.5625 was successfully installed. {"timestamp":"2022-06-17T16:59:48.595Z"} error: (node:6100) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use Code --trace-deprecation ... to show where the warning was created) {"timestamp":"2022-06-17T16:59:48.595Z"} info: Successfully installed extension ms-vsliveshare.vsliveshare. {"timestamp":"2022-06-17T16:59:48.596Z"} info: Successfully installed extension ms-vsliveshare.vsliveshare from the extension marketplace. {"timestamp":"2022-06-17T16:59:48.596Z"} info: Finished installing extensions. {"timestamp":"2022-06-17T16:59:48.602Z"} info: Attempting to write cohort identifier to extension folder at C:\Users\ashvi.vscode\extensions\PythonCodingPack... {"timestamp":"2022-06-17T16:59:48.602Z"} info: Successfully wrote cohort identifier to extension folder at C:\Users\ashvi.vscode\extensions\PythonCodingPack. {"timestamp":"2022-06-17T16:59:48.605Z"} info: Attempting to create starter Python file at C:\Users\ashvi\Documents\hello.py... {"timestamp":"2022-06-17T16:59:48.606Z"} info: Successfully created starter Python file. {"timestamp":"2022-06-17T16:59:48.608Z"} info: Completed installing VS Code and extensions. {"timestamp":"2022-06-17T16:59:48.608Z"} info: Attempting to install Python and packages... {"timestamp":"2022-06-17T16:59:48.630Z"} info: Detecting packed Python... {"timestamp":"2022-06-17T16:59:48.630Z"} info: Detected packed Python at C:\Users\ashvi\AppData\Local\Temp\1oiP0mtgmNM17u55fLKvSpuSxU0\resources\binaries\bundled-python.zip {"timestamp":"2022-06-17T16:59:48.640Z"} info: Attempting to extract Python files from C:\Users\ashvi\AppData\Local\Temp\1oiP0mtgmNM17u55fLKvSpuSxU0\resources\binaries\bundled-python.zip... {"timestamp":"2022-06-17T16:59:48.641Z"} info: Attempting to rename C:\Users\ashvi\AppData\Local\Programs\PythonCodingPack to C:\Users\ashvi\AppData\Local\Programs\lnvotvptsq... {"timestamp":"2022-06-17T16:59:48.641Z"} info: Encountered error while attempting to rename and delete existing custom Python directory from C:\Users\ashvi\AppData\Local\Programs\PythonCodingPack to C:\Users\ashvi\AppData\Local\Programs\lnvotvptsq: Error: ENOENT: no such file or directory, rename 'C:\Users\ashvi\AppData\Local\Programs\PythonCodingPack' -> 'C:\Users\ashvi\AppData\Local\Programs\lnvotvptsq' {"timestamp":"2022-06-17T16:59:48.643Z"} info: Successfully extracted Python files to C:\Users\ashvi\AppData\Local\Programs\PythonCodingPack. Elapsed time to extract Python: 100115ms. {"timestamp":"2022-06-17T17:01:28.758Z"} info: Writing keys to Windows Registry... {"timestamp":"2022-06-17T17:01:28.761Z"} info: Successfully completed writing keys to Windows Registry. {"timestamp":"2022-06-17T17:01:29.224Z"} verbose: Registry Item: OneDrive REG_EXPAND_SZ C:\Users\ashvi\OneDrive {"timestamp":"2022-06-17T17:01:29.290Z"} verbose: Registry Item: Path REG_EXPAND_SZ %USERPROFILE%\AppData\Local\Microsoft\WindowsApps;;C:\Users\ashvi\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\ashvi\AppData\Roaming\npm;%USERPROFILE%.dotnet\tools {"timestamp":"2022-06-17T17:01:29.290Z"} verbose: Registry Item: TEMP REG_EXPAND_SZ %USERPROFILE%\AppData\Local\Temp {"timestamp":"2022-06-17T17:01:29.290Z"} verbose: Registry Item: TMP REG_EXPAND_SZ %USERPROFILE%\AppData\Local\Temp {"timestamp":"2022-06-17T17:01:29.290Z"} info: Successfully located HKCU\Environment\Path {"timestamp":"2022-06-17T17:01:29.290Z"} info: Attempting to prepend Python to PATH with command: setx PATH C:\Users\ashvi\AppData\Local\Programs\PythonCodingPack\Scripts;C:\Users\ashvi\AppData\Local\Programs\PythonCodingPack;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;;C:\Users\ashvi\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\ashvi\AppData\Roaming\npm;%USERPROFILE%.dotnet\tools {"timestamp":"2022-06-17T17:01:29.290Z"} info: Encountered error while updating PATH: Error: Command failed with ENOENT: setx PATH C:\Users\ashvi\AppData\Local\Programs\PythonCodingPack\Scripts;C:\Users\ashvi\AppData\Local\Programs\PythonCodingPack;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;;C:\Users\ashvi\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\ashvi\AppData\Roaming\npm;%USERPROFILE%.dotnet\tools spawn setx ENOENT 'setx' is not recognized as an internal or external command, operable program or batch file. {"timestamp":"2022-06-17T17:01:29.340Z"} info: Attempting to ensure pip is installed with command C:\Users\ashvi\AppData\Local\Programs\PythonCodingPack\python.exe -m ensurepip --default-pip... {"timestamp":"2022-06-17T17:01:29.341Z"} info: Looking in links: c:\Users\ashvi\AppData\Local\Temp\tmpo1whkhzi Requirement already satisfied: setuptools in c:\users\ashvi\appdata\local\programs\pythoncodingpack\lib\site-packages (47.1.0) Processing c:\users\ashvi\appdata\local\temp\tmpo1whkhzi\pip-20.1.1-py2.py3-none-any.whl Installing collected packages: pip Successfully installed pip-20.1.1 {"timestamp":"2022-06-17T17:01:40.159Z"} info: WARNING: The scripts pip.exe, pip3.8.exe and pip3.exe are installed in 'C:\Users\ashvi\AppData\Local\Programs\PythonCodingPack\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. {"timestamp":"2022-06-17T17:01:40.160Z"} info: Successfully executed command C:\Users\ashvi\AppData\Local\Programs\PythonCodingPack\python.exe -m ensurepip --default-pip. {"timestamp":"2022-06-17T17:01:40.160Z"} info: Completed installing Python and packages. {"timestamp":"2022-06-17T17:01:40.167Z"} info: Attempting to enable Powershell scripts {"timestamp":"2022-06-17T17:01:40.177Z"} info: Successfully enabled Powershell scripts {"timestamp":"2022-06-17T17:01:40.272Z"}