Error while installing python extension please check the log for more details

Environment data VS Code version: VSCodeUserSetup-x64-1.60.0 Extension version (available under the Extensions sidebar): Python v2021.9.1191016588 OS and version: Windows 10 Python version (& d...

Environment data

  • VS Code version: VSCodeUserSetup-x64-1.60.0
  • Extension version (available under the Extensions sidebar): Python v2021.9.1191016588
  • OS and version: Windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): Miniconda python 3.9
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): miniconda
  • Relevant/affected Python packages and their versions: Python 3.9.5 in windows
  • Relevant/affected Python-related VS Code extensions and their versions: None
  • Value of the python.languageServer setting: English? I didn’t change it.

[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]

Expected behaviour

Should allow me to install Python extension in VS code. Then I can configure the Python interceptor to run the python file with miniconda.

Actual behaviour

When I install Python extension in VS code, show the message: «Error when installing ‘Python’ extension. Please check the log for more details.». The log is saying below, and even I download «ms-python.python-2021.9.1191016588 (1).vsix» and manually install from VISX it’s not working :
[2021-09-08 11:13:54.276] [renderer1] [error] extension/package.json not found inside zip.,extension/package.json not found inside zip.: unknown: extension/package.json not found inside zip.,extension/package.json not found inside zip.
at vscode-file://vscode-app/c:/Users/sshi126/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:48:17341
at Array.reduce ()
at g (vscode-file://vscode-app/c:/Users/sshi126/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:48:17327)
at O.joinAllSettled (vscode-file://vscode-app/c:/Users/sshi126/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:48:9895)
at async O.installExtension (vscode-file://vscode-app/c:/Users/sshi126/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:48:7440)

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. Open VS code
  2. Install Python extension

Logs

I am trying to install python extension in vscode latest version and I can’t it
show to me Error while installing 'Python' extension. Please check the log for more details.
the output in log is

[2022-08-25 21:34:08.006] [renderer1] [error] Corrupt ZIP: end of central directory record signature not found: Invalid: Corrupt ZIP: end of central directory record signature not found
    at Q.downloadExtension (vscode-file://vscode-app/c:/Users/Zakaria/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:83:169227)
at async Q.doRun (vscode-file://vscodeapp/c:/Users/Zakaria/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:83:168169)
[2022-08-25 21:37:57.509] [renderer1] [error] ["Invalid: Corrupt ZIP: end of central directory record signature not found","    at Q.downloadExtension (vscode-file://vscode-app/c:/Users/Zakaria/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:83:169227)","    at async Q.doRun (vscode-file://vscode-app/c:/Users/Zakaria/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:83:168169)"]
[2022-08-25 21:37:57.516] [renderer1] [error] Corrupt ZIP: end of central directory record signature not found: Invalid: Corrupt ZIP: end of central directory record signature not found
    at Q.downloadExtension (vscode-file://vscode-app/c:/Users/Zakaria/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:83:169227)
    at async Q.doRun (vscode-file://vscode-app/c:/Users/Zakaria/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:83:168169)

I am trying to install manually
using this command after download extension but i get t same problem

code --install-extension ms-python.python-2022.12.1.vsix
so I uninstall vscode and delete the file extension and reinstall again but I get the same problem .

can any one help me ????

asked Aug 25, 2022 at 19:16

Zakaria Zhlat's user avatar

6

If you install these extensions on vscode and it gives an error, change the net!
I can install add-ons without problems with the first mobile net, but not with other nets (especially ADSL).
If you don’t have the first mobile note available, try F-Y-L-T-R Shekan with the same note.

answered Jan 20 at 19:40

sajjad shokohi's user avatar

Environment data

  • VS Code version: 1.59.1
  • Extension version (available under the Extensions sidebar): Python & Pylance
  • OS and version:

NAME=»Ubuntu»
VERSION=»18.04.4 LTS (Bionic Beaver)»
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME=»Ubuntu 18.04.4 LTS»
VERSION_ID=»18.04″
HOME_URL=»https://www.ubuntu.com/»
SUPPORT_URL=»https://help.ubuntu.com/»
BUG_REPORT_URL=»https://bugs.launchpad.net/ubuntu/»
PRIVACY_POLICY_URL=»https://www.ubuntu.com/legal/terms-and-policies/privacy-policy»
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

  • Python version (& distribution if applicable, e.g. Anaconda): python 3.6.10
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): N/A
  • Relevant/affected Python packages and their versions: N/A
  • Relevant/affected Python-related VS Code extensions and their versions: Python (v2021.8.1147840270) & Pylance (v2021.8.2)
  • Value of the python.languageServer setting: N/A

[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]

Expected behaviour

Expected extension to be installed. Tried to install python and pylance extension on above os (remote ssh), not working. Below steps are attemped:

  • Download python extension from github release and install .vsix manually, same error message. (see log below)
  • Download and install other extension are successful and seems like only python and pylance extension got affected since the latest update.

Actual behaviour

Error while installing ‘Pylance’ extension. Please check the log for more details.

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. Install via extension sidebar within vscode, or
  2. Install manually via calling Extensions: Install from VSIX command within vscode.

Logs

[2021-08-20 14:28:13.591] [renderer7] [error] getaddrinfo ENOTFOUND marketplace.visualstudio.com: Error: getaddrinfo ENOTFOUND marketplace.visualstudio.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
[2021-08-20 14:29:30.638] [renderer7] [error] read ECONNRESET: Error: read ECONNRESET
at TCP.onStreamRead (internal/stream_base_commons.js:209:20)
[2021-08-20 14:29:35.740] [renderer7] [error] getaddrinfo ENOTFOUND marketplace.visualstudio.com: Error: getaddrinfo ENOTFOUND marketplace.visualstudio.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
[2021-08-20 14:31:54.178] [renderer7] [error] read ECONNRESET: Error: read ECONNRESET
at TCP.onStreamRead (internal/stream_base_commons.js:209:20)
[2021-08-20 14:32:55.819] [renderer7] [error] ENOENT: no such file or directory, access ‘/home/cdsw/.vscode-server/extensions/ms-toolsai.jupyter-2021.8.1236758218’: Error: ENOENT: no such file or directory, access ‘/home/cdsw/.vscode-server/extensions/ms-toolsai.jupyter-2021.8.1236758218’
[2021-08-20 14:32:56.785] [renderer7] [error] [«Error: getaddrinfo ENOTFOUND marketplace.visualstudio.com»,» at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)»]
[2021-08-20 14:32:56.799] [renderer7] [error] getaddrinfo ENOTFOUND marketplace.visualstudio.com: Error: getaddrinfo ENOTFOUND marketplace.visualstudio.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

Понравилась статья? Поделить с друзьями:
  • Error while installing my summer car
  • Error while injecting payload rc 50
  • Error while injecting dll into target process 3d analyzer что это
  • Error while initializing opengl diablo 3
  • Error while connecting to host 10061