Unable to install python extension in restricted network (offline install) #24020
Unanswered
clintb-msft
asked this question in
Q&A
Replies: 1 comment 3 replies
-
This should be something VS Code can answer better. Can you ask there? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Windows 11 Pro x64, in a restricted network scenario, very few outbound fqdns allowed
I've tried the recommended method using the vsix and below command
code --install-extension .\ms-python.python-2024.13.2024082701.vsix --log trace
Seeing this exception in the log
TRACE [File Watcher (node.js)] [CHANGED] c:\Users\59e04c8e62.vscode\extensions.763f4210-8d28-4223-a577-f6647b38280a
ERR Error while installing the extension ms-python.debugpy Client network socket disconnected before secure TLS connection was established vscode-userdata:/c%3A/Users/59e04c8e62/.vscode/extensions/extensions.json
ERR [uncaught exception in CLI]: Client network socket disconnected before secure TLS connection was established: Error: Client network socket disconnected before secure TLS connection was established
at TLSSocket.onConnectEnd (node:_tls_wrap:1727:19)
at TLSSocket.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
TRACE [File Watcher (node.js)] [raw] ["change"] .763f4210-8d28-4223-a577-f6647b38280a
TRACE [File Watcher (node.js)] [CHANGED] c:\Users\59e04c8e62.vscode\extensions.763f4210-8d28-4223-a577-f6647b38280a
ERR Error while installing the extension ms-python.vscode-pylance Client network socket disconnected before secure TLS connection was established vscode-userdata:/c%3A/Users/59e04c8e62/.vscode/extensions/extensions.json
ERR [uncaught exception in CLI]: Client network socket disconnected before secure TLS connection was established: Error: Client network socket disconnected before secure TLS connection was established
at TLSSocket.onConnectEnd (node:_tls_wrap:1727:19)
at TLSSocket.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
I tried installing pylance and pydebug first, but they also fail, and I also attempted to install them all 3 together in the same command, but still no luck
code --install-extension .\ms-python.python-2024.13.2024082701.vsix --install-extension .\ms-python.vscode-pylance-2024.8.103.vsix --install-extension .\ms-python.debugpy-2024.11.2024082801.vsix --log trace
Users have to manually bring their extensions and install, but we can't see how to prevent the dependency failures. Can you please suggest how we should proceed here to get these installed in an offline/restricted network?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions