Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endless Waiting in Discovering Python Interpreters #22522

Closed
DuTim opened this issue Nov 24, 2023 · 5 comments
Closed

Endless Waiting in Discovering Python Interpreters #22522

DuTim opened this issue Nov 24, 2023 · 5 comments
Assignees
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@DuTim
Copy link

DuTim commented Nov 24, 2023

Type: Bug

In a ssh-remote server the python extension don't work

On this server, vscode's python extensions don't work properly, mainly because they're stuck at the [Discovering Python Interpreters] step.

I've already done the following: rolled back the vscode version, rolled back the python extension version.

Finally, I suspect that it's a problem with conda, which I've removed to simplify the problem.

But it's still not working.

image

Extension version: 2023.20.0
VS Code version: Code 1.84.2 (1a5daa3a0231a0fbba4f14db7ec463cf99d7768e, 2023-11-09T10:51:52.184Z)
OS version: Windows_NT x64 10.0.19044
Modes:
Remote OS version: Linux x64 4.15.0-76-generic

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2208)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 15.88GB (3.36GB free)
Process Argv
Screen Reader no
VM 33%
Item Value
Remote SSH: 71q5286i32.imdo.co
OS Linux x64 4.15.0-76-generic
CPUs Intel(R) Xeon(R) Gold 6354 CPU @ 3.00GHz (72 x 798)
Memory (System) 1511.57GB (1471.84GB free)
VM 0%
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263:30880072
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
282f8724:30602487
89544117:30613380
showlangstatbar:30737416
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
welcomedialogc:30887144
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
dsvsc013:30795093
dsvsc014:30804076
dsvsc015:30845448
pythontestfixt:30871694
pythonregdiag2:30871582
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
dsvsc016cf:30886111
dsvsc017cf:30886113
dsvsc018cf:30886115
aa_t_chat:30882232

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Nov 24, 2023
@DuTim
Copy link
Author

DuTim commented Nov 24, 2023

python trace log

2023-11-25 00:40:34.478 [info] Experiment 'pythonPromptNewFormatterExt' is active
2023-11-25 00:40:34.478 [info] Experiment 'pythonPromptNewToolsExt' is active
2023-11-25 00:40:34.478 [info] Experiment 'pythonRecommendTensorboardExtcf' is active
2023-11-25 00:40:34.478 [info] Experiment 'pythonREPLSmartSend' is active
2023-11-25 00:40:34.478 [info] Experiment 'pythonTestAdapter' is active
2023-11-25 00:40:34.485 [debug] Getting roots
2023-11-25 00:40:34.485 [debug] Getting roots
2023-11-25 00:40:34.487 [debug] Found roots
2023-11-25 00:40:34.488 [debug] Start watching file for changes /root/.conda/environments.txt
2023-11-25 00:40:34.488 [debug] Start watching: /root/.conda with pattern environments.txt using VSCode API
2023-11-25 00:40:34.489 [debug] Found roots
2023-11-25 00:40:34.490 [debug] Start watching root /nfs1/xz_yyb for globs ["python","*/python","*/bin/python"]
2023-11-25 00:40:34.490 [debug] Start watching: /nfs1/xz_yyb with pattern python using VSCode API
2023-11-25 00:40:34.490 [debug] Start watching: /nfs1/xz_yyb with pattern */python using VSCode API
2023-11-25 00:40:34.490 [debug] Start watching: /nfs1/xz_yyb with pattern */bin/python using VSCode API
2023-11-25 00:40:34.792 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="global"-Arg-Separator-"ssh-remote_WORKSPACE_FOLDER_INTERPRETER_PATH_/nfs1/xz_yyb"-Arg-Separator-undefined
2023-11-25 00:40:34.792 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/nfs1/xz_yyb"-Arg-Separator-undefined
2023-11-25 00:40:34.793 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="global"-Arg-Separator-"ssh-remote_WORKSPACE_FOLDER_INTERPRETER_PATH_/nfs1/xz_yyb"-Arg-Separator-undefined
2023-11-25 00:40:34.793 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="global"-Arg-Separator-"ssh-remote_WORKSPACE_FOLDER_INTERPRETER_PATH_/nfs1/xz_yyb"-Arg-Separator-undefined
2023-11-25 00:40:34.793 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/nfs1/xz_yyb"-Arg-Separator-undefined
2023-11-25 00:40:34.793 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/nfs1/xz_yyb"-Arg-Separator-undefined
2023-11-25 00:40:34.793 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="global"-Arg-Separator-"ssh-remote_WORKSPACE_FOLDER_INTERPRETER_PATH_/nfs1/xz_yyb"-Arg-Separator-undefined
2023-11-25 00:40:34.793 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="global"-Arg-Separator-"ssh-remote_WORKSPACE_FOLDER_INTERPRETER_PATH_/nfs1/xz_yyb"-Arg-Separator-undefined
2023-11-25 00:40:34.793 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/nfs1/xz_yyb"-Arg-Separator-undefined
2023-11-25 00:40:34.793 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/nfs1/xz_yyb"-Arg-Separator-undefined
2023-11-25 00:40:34.793 [info] Default formatter is set to ms-python.black-formatter for workspace /nfs1/xz_yyb
2023-11-25 00:40:34.857 [debug] Waiting for test server to start...
2023-11-25 00:40:34.857 [debug] Searching for interpreters in posix paths locator
2023-11-25 00:40:34.857 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/nfs1/xz_yyb"-Arg-Separator-undefined
2023-11-25 00:40:34.861 [debug] Searching for pyenv environments
2023-11-25 00:40:34.861 [debug] Searching for conda.
2023-11-25 00:40:34.861 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="global"-Arg-Separator-"PythonTensorBoardWebviewPreferredViewGroup"-Arg-Separator--1
2023-11-25 00:40:34.862 [debug] Probing conda binary: conda
2023-11-25 00:40:35.224 [debug] VS Code was not launched from the command line, not selecting activated interpreter {
    "MAIL": "/var/mail/root",
    "USER": "root",
    "SSH_CLIENT": "127.0.0.1 39022 22",
    "LANGUAGE": "en_US:",
    "SHLVL": "2",
    "HOME": "/root",
    "OLDPWD": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e",
    "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus",
    "LOGNAME": "root",
    "_": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/bin/code-server",
    "XDG_SESSION_ID": "84",
    "PATH": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
    "VSCODE_AGENT_FOLDER": "/root/.vscode-server",
    "XDG_RUNTIME_DIR": "/run/user/0",
    "THC_BASEDIR": "/root/.config/prng",
    "LANG": "en_US.UTF-8",
    "THC_PS_NAME": "-bash",
    "SHELL": "/bin/bash",
    "LC_ALL": "en_US.UTF-8",
    "PWD": "/root",
    "SSH_CONNECTION": "127.0.0.1 39022 127.0.0.1 22",
    "VSCODE_HANDLES_SIGPIPE": "true",
    "VSCODE_AMD_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess",
    "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
    "VSCODE_NLS_CONFIG": "{\"locale\":\"en\",\"osLocale\":\"en\",\"availableLanguages\":{}}",
    "BROWSER": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/bin/helpers/browser.sh",
    "VSCODE_CWD": "/root",
    "ELECTRON_RUN_AS_NODE": "1",
    "VSCODE_IPC_HOOK_CLI": "/run/user/0/vscode-ipc-469fc308-6c58-4a35-8397-26c032f6743d.sock",
    "VSCODE_L10N_BUNDLE_LOCATION": ""
}
2023-11-25 00:40:35.225 [debug] VS Code was not launched from the command line, not selecting activated interpreter {
    "MAIL": "/var/mail/root",
    "USER": "root",
    "SSH_CLIENT": "127.0.0.1 39022 22",
    "LANGUAGE": "en_US:",
    "SHLVL": "2",
    "HOME": "/root",
    "OLDPWD": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e",
    "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus",
    "LOGNAME": "root",
    "_": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/bin/code-server",
    "XDG_SESSION_ID": "84",
    "PATH": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
    "VSCODE_AGENT_FOLDER": "/root/.vscode-server",
    "XDG_RUNTIME_DIR": "/run/user/0",
    "THC_BASEDIR": "/root/.config/prng",
    "LANG": "en_US.UTF-8",
    "THC_PS_NAME": "-bash",
    "SHELL": "/bin/bash",
    "LC_ALL": "en_US.UTF-8",
    "PWD": "/root",
    "SSH_CONNECTION": "127.0.0.1 39022 127.0.0.1 22",
    "VSCODE_HANDLES_SIGPIPE": "true",
    "VSCODE_AMD_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess",
    "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
    "VSCODE_NLS_CONFIG": "{\"locale\":\"en\",\"osLocale\":\"en\",\"availableLanguages\":{}}",
    "BROWSER": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/bin/helpers/browser.sh",
    "VSCODE_CWD": "/root",
    "ELECTRON_RUN_AS_NODE": "1",
    "VSCODE_IPC_HOOK_CLI": "/run/user/0/vscode-ipc-469fc308-6c58-4a35-8397-26c032f6743d.sock",
    "VSCODE_L10N_BUNDLE_LOCATION": ""
}
2023-11-25 00:40:35.248 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="global"-Arg-Separator-"ssh-remote_WORKSPACE_FOLDER_INTERPRETER_PATH_/nfs1/xz_yyb"-Arg-Separator-undefined
2023-11-25 00:40:35.248 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="global"-Arg-Separator-"ssh-remote_WORKSPACE_FOLDER_INTERPRETER_PATH_/nfs1/xz_yyb"-Arg-Separator-undefined
2023-11-25 00:40:35.252 [info] Test server listening.
2023-11-25 00:40:35.252 [debug] Test server started.
2023-11-25 00:40:35.252 [debug] Testing: Setting up watcher for /nfs1/xz_yyb
2023-11-25 00:40:35.253 [debug] Finished searching for custom virtual envs
2023-11-25 00:40:35.253 [debug] Couldn't locate the state binary.
2023-11-25 00:40:35.255 [debug] Dump environment variables {
    "MAIL": "/var/mail/root",
    "USER": "root",
    "SSH_CLIENT": "127.0.0.1 39022 22",
    "LANGUAGE": "en_US:",
    "SHLVL": "2",
    "HOME": "/root",
    "OLDPWD": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e",
    "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus",
    "LOGNAME": "root",
    "_": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/bin/code-server",
    "XDG_SESSION_ID": "84",
    "VSCODE_AGENT_FOLDER": "/root/.vscode-server",
    "XDG_RUNTIME_DIR": "/run/user/0",
    "THC_BASEDIR": "/root/.config/prng",
    "LANG": "en_US.UTF-8",
    "THC_PS_NAME": "-bash",
    "SHELL": "/bin/bash",
    "LC_ALL": "en_US.UTF-8",
    "PWD": "/root",
    "SSH_CONNECTION": "127.0.0.1 39022 127.0.0.1 22",
    "VSCODE_HANDLES_SIGPIPE": "true",
    "VSCODE_AMD_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess",
    "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
    "VSCODE_NLS_CONFIG": "{\"locale\":\"en\",\"osLocale\":\"en\",\"availableLanguages\":{}}",
    "BROWSER": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/bin/helpers/browser.sh",
    "VSCODE_CWD": "/root",
    "ELECTRON_RUN_AS_NODE": "1",
    "VSCODE_IPC_HOOK_CLI": "/run/user/0/vscode-ipc-469fc308-6c58-4a35-8397-26c032f6743d.sock",
    "VSCODE_L10N_BUNDLE_LOCATION": "",
    "PATH": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
}
2023-11-25 00:40:35.308 [info] > conda info --json
2023-11-25 00:40:35.326 [debug] Failed to spawn conda binary conda [Error: spawn conda ENOENT
	at ChildProcess._handle.onexit (node:internal/child_process:283:19)
	at onErrorNT (node:internal/child_process:476:16)
	at process.processTicksAndRejections (node:internal/process/task_queues:82:21)] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn conda',
  path: 'conda',
  spawnargs: [ 'info', '--json' ]
}
2023-11-25 00:40:35.326 [debug] Searching for workspace virtual envs in: /nfs1/xz_yyb
2023-11-25 00:40:35.326 [debug] Finished searching for poetry envs
2023-11-25 00:40:35.327 [debug] Finished searching for global virtual envs
2023-11-25 00:40:35.329 [debug] Probing conda binary: /root/.conda/bin/conda
2023-11-25 00:40:35.403 [info] > ~/.conda/bin/conda info --json
2023-11-25 00:40:35.405 [debug] Failed to spawn conda binary /root/.conda/bin/conda [Error: spawn /root/.conda/bin/conda ENOENT
	at ChildProcess._handle.onexit (node:internal/child_process:283:19)
	at onErrorNT (node:internal/child_process:476:16)
	at process.processTicksAndRejections (node:internal/process/task_queues:82:21)] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn /root/.conda/bin/conda',
  path: '/root/.conda/bin/conda',
  spawnargs: [ 'info', '--json' ]
}
2023-11-25 00:40:35.405 [debug] Probing conda binary: /root/.condarc/bin/conda
2023-11-25 00:40:35.480 [debug] Failed to spawn conda binary /root/.condarc/bin/conda [Error: spawn ENOTDIR
	at ChildProcess.spawn (node:internal/child_process:413:11)
	at spawn (node:child_process:776:9)
	at t.plainExec (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:229023)
	at s.exec (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:216189)
	at t.exec (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:610251)
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
	at async _.getInfoImpl (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:592624)
	at async _.locate (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:591908)
	at async a.doIterEnvs (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:561950)
	at async a.iterEnvs (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:542112)
	at async i (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:278331)] {
  errno: -20,
  code: 'ENOTDIR',
  syscall: 'spawn'
}
2023-11-25 00:40:35.480 [debug] Probing conda binary: /root/Anaconda3-2023.03-1-Linux-x86_64.sh/bin/conda
2023-11-25 00:40:35.554 [debug] Failed to spawn conda binary /root/Anaconda3-2023.03-1-Linux-x86_64.sh/bin/conda [Error: spawn ENOTDIR
	at ChildProcess.spawn (node:internal/child_process:413:11)
	at spawn (node:child_process:776:9)
	at t.plainExec (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:229023)
	at s.exec (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:216189)
	at t.exec (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:610251)
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
	at async _.getInfoImpl (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:592624)
	at async _.locate (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:591908)
	at async a.doIterEnvs (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:561950)
	at async a.iterEnvs (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:542112)
	at async i (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:278331)] {
  errno: -20,
  code: 'ENOTDIR',
  syscall: 'spawn'
}
2023-11-25 00:40:35.555 [debug] Probing conda binary: /root/Miniconda3-py310_23.9.0-0-Linux-x86_64.sh/bin/conda
2023-11-25 00:40:35.627 [debug] Failed to spawn conda binary /root/Miniconda3-py310_23.9.0-0-Linux-x86_64.sh/bin/conda [Error: spawn ENOTDIR
	at ChildProcess.spawn (node:internal/child_process:413:11)
	at spawn (node:child_process:776:9)
	at t.plainExec (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:229023)
	at s.exec (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:216189)
	at t.exec (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:610251)
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
	at async _.getInfoImpl (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:592624)
	at async _.locate (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:591908)
	at async a.doIterEnvs (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:561950)
	at async a.iterEnvs (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:542112)
	at async i (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:278331)] {
  errno: -20,
  code: 'ENOTDIR',
  syscall: 'spawn'
}
2023-11-25 00:40:35.628 [debug] Probing conda binary: /root/Miniconda3-py39_23.5.2-0-Linux-x86_64.sh/bin/conda
2023-11-25 00:40:35.702 [debug] Failed to spawn conda binary /root/Miniconda3-py39_23.5.2-0-Linux-x86_64.sh/bin/conda [Error: spawn ENOTDIR
	at ChildProcess.spawn (node:internal/child_process:413:11)
	at spawn (node:child_process:776:9)
	at t.plainExec (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:229023)
	at s.exec (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:216189)
	at t.exec (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:610251)
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
	at async _.getInfoImpl (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:592624)
	at async _.locate (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:591908)
	at async a.doIterEnvs (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:561950)
	at async a.iterEnvs (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:542112)
	at async i (/root/.vscode-server/extensions/ms-python.python-2023.20.0/out/client/extension.js:2:278331)] {
  errno: -20,
  code: 'ENOTDIR',
  syscall: 'spawn'
}
2023-11-25 00:40:35.716 [debug] Attempting to resolve symbolic link: /usr/bin/python
2023-11-25 00:40:35.717 [info] Found: /usr/bin/python --> /usr/bin/python3.6
2023-11-25 00:40:35.717 [debug] Attempting to resolve symbolic link: /usr/bin/python2
2023-11-25 00:40:35.718 [info] Found: /usr/bin/python2 --> /usr/bin/python2.7
2023-11-25 00:40:35.718 [debug] Attempting to resolve symbolic link: /usr/bin/python2.7
2023-11-25 00:40:35.718 [info] Found: /usr/bin/python2.7 --> /usr/bin/python2.7
2023-11-25 00:40:35.718 [debug] Attempting to resolve symbolic link: /usr/bin/python3.6
2023-11-25 00:40:35.718 [info] Found: /usr/bin/python3.6 --> /usr/bin/python3.6
2023-11-25 00:40:35.721 [debug] Finished searching for workspace virtual envs
2023-11-25 00:40:35.721 [debug] Found 2 python binaries in posix paths
2023-11-25 00:40:35.727 [debug] Python API env change detected /usr/bin/python add
2023-11-25 00:40:35.776 [debug] Finished searching for interpreters in posix paths locator
2023-11-25 00:40:35.776 [info] > /usr/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.20.0/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.20.0/pythonFiles/interpreterInfo.py
2023-11-25 00:40:35.777 [debug] Shell Exec: /usr/bin/python -I /root/.vscode-server/extensions/ms-python.python-2023.20.0/pythonFiles/get_output_via_markers.py /root/.vscode-server/extensions/ms-python.python-2023.20.0/pythonFiles/interpreterInfo.py with options: {
    "timeout": 15000,
    "doNotLog": true,
    "encoding": "utf8",
    "env": {
        "MAIL": "/var/mail/root",
        "USER": "root",
        "SSH_CLIENT": "127.0.0.1 39022 22",
        "LANGUAGE": "en_US:",
        "SHLVL": "2",
        "HOME": "/root",
        "OLDPWD": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e",
        "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus",
        "LOGNAME": "root",
        "_": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/bin/code-server",
        "XDG_SESSION_ID": "84",
        "VSCODE_AGENT_FOLDER": "/root/.vscode-server",
        "XDG_RUNTIME_DIR": "/run/user/0",
        "THC_BASEDIR": "/root/.config/prng",
        "LANG": "en_US.UTF-8",
        "THC_PS_NAME": "-bash",
        "SHELL": "/bin/bash",
        "LC_ALL": "en_US.UTF-8",
        "PWD": "/root",
        "SSH_CONNECTION": "127.0.0.1 39022 127.0.0.1 22",
        "VSCODE_HANDLES_SIGPIPE": "true",
        "VSCODE_AMD_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess",
        "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
        "VSCODE_NLS_CONFIG": "{\"locale\":\"en\",\"osLocale\":\"en\",\"availableLanguages\":{}}",
        "BROWSER": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/bin/helpers/browser.sh",
        "VSCODE_CWD": "/root",
        "ELECTRON_RUN_AS_NODE": "1",
        "VSCODE_IPC_HOOK_CLI": "/run/user/0/vscode-ipc-469fc308-6c58-4a35-8397-26c032f6743d.sock",
        "VSCODE_L10N_BUNDLE_LOCATION": "",
        "PATH": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
        "PYTHONUNBUFFERED": "1",
        "PYTHONIOENCODING": "utf-8"
    }
}
2023-11-25 00:40:35.780 [debug] Probing conda binary: /root/anaconda3/bin/conda
2023-11-25 00:40:35.855 [info] > ~/anaconda3/bin/conda info --json
2023-11-25 00:40:35.856 [debug] Failed to spawn conda binary /root/anaconda3/bin/conda [Error: spawn /root/anaconda3/bin/conda ENOENT
	at ChildProcess._handle.onexit (node:internal/child_process:283:19)
	at onErrorNT (node:internal/child_process:476:16)
	at process.processTicksAndRejections (node:internal/process/task_queues:82:21)] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn /root/anaconda3/bin/conda',
  path: '/root/anaconda3/bin/conda',
  spawnargs: [ 'info', '--json' ]
}
2023-11-25 00:40:35.857 [debug] Couldn't locate the conda binary.
2023-11-25 00:40:35.857 [debug] Couldn't locate the conda binary.
2023-11-25 00:40:35.915 [info] > /usr/bin/python2 -I ~/.vscode-server/extensions/ms-python.python-2023.20.0/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.20.0/pythonFiles/interpreterInfo.py
2023-11-25 00:40:35.916 [debug] Shell Exec: /usr/bin/python2 -I /root/.vscode-server/extensions/ms-python.python-2023.20.0/pythonFiles/get_output_via_markers.py /root/.vscode-server/extensions/ms-python.python-2023.20.0/pythonFiles/interpreterInfo.py with options: {
    "timeout": 15000,
    "doNotLog": true,
    "encoding": "utf8",
    "env": {
        "MAIL": "/var/mail/root",
        "USER": "root",
        "SSH_CLIENT": "127.0.0.1 39022 22",
        "LANGUAGE": "en_US:",
        "SHLVL": "2",
        "HOME": "/root",
        "OLDPWD": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e",
        "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus",
        "LOGNAME": "root",
        "_": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/bin/code-server",
        "XDG_SESSION_ID": "84",
        "VSCODE_AGENT_FOLDER": "/root/.vscode-server",
        "XDG_RUNTIME_DIR": "/run/user/0",
        "THC_BASEDIR": "/root/.config/prng",
        "LANG": "en_US.UTF-8",
        "THC_PS_NAME": "-bash",
        "SHELL": "/bin/bash",
        "LC_ALL": "en_US.UTF-8",
        "PWD": "/root",
        "SSH_CONNECTION": "127.0.0.1 39022 127.0.0.1 22",
        "VSCODE_HANDLES_SIGPIPE": "true",
        "VSCODE_AMD_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess",
        "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
        "VSCODE_NLS_CONFIG": "{\"locale\":\"en\",\"osLocale\":\"en\",\"availableLanguages\":{}}",
        "BROWSER": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/bin/helpers/browser.sh",
        "VSCODE_CWD": "/root",
        "ELECTRON_RUN_AS_NODE": "1",
        "VSCODE_IPC_HOOK_CLI": "/run/user/0/vscode-ipc-469fc308-6c58-4a35-8397-26c032f6743d.sock",
        "VSCODE_L10N_BUNDLE_LOCATION": "",
        "PATH": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
        "PYTHONUNBUFFERED": "1",
        "PYTHONIOENCODING": "utf-8"
    }
}
2023-11-25 00:40:35.916 [debug] Finished with environment reducer
2023-11-25 00:40:36.098 [debug] Storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS  retrying by resetting first
2023-11-25 00:40:36.098 [debug] Storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS  retrying by resetting first
2023-11-25 00:40:36.098 [debug] Storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS  retrying by resetting first
2023-11-25 00:40:36.098 [debug] Storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS  retrying by resetting first
2023-11-25 00:40:36.098 [debug] Storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS  retrying by resetting first
2023-11-25 00:40:36.099 [debug] Storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS  retrying by resetting first
2023-11-25 00:40:36.099 [debug] Storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS  retrying by resetting first
2023-11-25 00:40:36.099 [debug] Storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS  retrying by resetting first
2023-11-25 00:40:36.099 [debug] Storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS  retrying by resetting first
2023-11-25 00:40:36.513 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-11-25 00:40:36.513 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-11-25 00:40:36.513 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-11-25 00:40:36.513 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-11-25 00:40:36.513 [warning] Retry failed, storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS
2023-11-25 00:40:36.514 [warning] Retry failed, storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS
2023-11-25 00:40:36.514 [warning] Retry failed, storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS
2023-11-25 00:40:49.420 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-11-25 00:40:49.420 [debug] Clearing context for python dependencies not installed: ms-python.python.Python
2023-11-25 00:40:49.422 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=false
2023-11-25 00:40:49.423 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="global"-Arg-Separator-"ssh-remote_WORKSPACE_FOLDER_INTERPRETER_PATH_/nfs1/xz_yyb"-Arg-Separator-undefined
2023-11-25 00:40:49.423 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="global"-Arg-Separator-"ssh-remote_WORKSPACE_FOLDER_INTERPRETER_PATH_/nfs1/xz_yyb"-Arg-Separator-undefined
2023-11-25 00:40:49.423 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/nfs1/xz_yyb"-Arg-Separator-undefined
2023-11-25 00:40:49.423 [debug] Cached data exists KeyPrefix=Cache_Method_Output_y.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectionInterpretersQueried-/nfs1/xz_yyb"-Arg-Separator-undefined
2023-11-25 00:41:25.250 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute.
2023-11-25 00:41:25.252 [debug] Dump environment variables {
    "MAIL": "/var/mail/root",
    "USER": "root",
    "SSH_CLIENT": "127.0.0.1 39022 22",
    "LANGUAGE": "en_US:",
    "SHLVL": "2",
    "HOME": "/root",
    "OLDPWD": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e",
    "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus",
    "LOGNAME": "root",
    "_": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/bin/code-server",
    "XDG_SESSION_ID": "84",
    "VSCODE_AGENT_FOLDER": "/root/.vscode-server",
    "XDG_RUNTIME_DIR": "/run/user/0",
    "THC_BASEDIR": "/root/.config/prng",
    "LANG": "en_US.UTF-8",
    "THC_PS_NAME": "-bash",
    "SHELL": "/bin/bash",
    "LC_ALL": "en_US.UTF-8",
    "PWD": "/root",
    "SSH_CONNECTION": "127.0.0.1 39022 127.0.0.1 22",
    "VSCODE_HANDLES_SIGPIPE": "true",
    "VSCODE_AMD_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess",
    "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
    "VSCODE_NLS_CONFIG": "{\"locale\":\"en\",\"osLocale\":\"en\",\"availableLanguages\":{}}",
    "BROWSER": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/bin/helpers/browser.sh",
    "VSCODE_CWD": "/root",
    "ELECTRON_RUN_AS_NODE": "1",
    "VSCODE_IPC_HOOK_CLI": "/run/user/0/vscode-ipc-469fc308-6c58-4a35-8397-26c032f6743d.sock",
    "VSCODE_L10N_BUNDLE_LOCATION": "",
    "PATH": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
}
2023-11-25 00:41:25.313 [info] > python -c "import sys;print(sys.executable)"
2023-11-25 00:41:25.314 [debug] Shell Exec: python -c "import sys;print(sys.executable)" with options: {
    "timeout": 15000,
    "doNotLog": true,
    "encoding": "utf8",
    "env": {
        "MAIL": "/var/mail/root",
        "USER": "root",
        "SSH_CLIENT": "127.0.0.1 39022 22",
        "LANGUAGE": "en_US:",
        "SHLVL": "2",
        "HOME": "/root",
        "OLDPWD": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e",
        "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus",
        "LOGNAME": "root",
        "_": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/bin/code-server",
        "XDG_SESSION_ID": "84",
        "VSCODE_AGENT_FOLDER": "/root/.vscode-server",
        "XDG_RUNTIME_DIR": "/run/user/0",
        "THC_BASEDIR": "/root/.config/prng",
        "LANG": "en_US.UTF-8",
        "THC_PS_NAME": "-bash",
        "SHELL": "/bin/bash",
        "LC_ALL": "en_US.UTF-8",
        "PWD": "/root",
        "SSH_CONNECTION": "127.0.0.1 39022 127.0.0.1 22",
        "VSCODE_HANDLES_SIGPIPE": "true",
        "VSCODE_AMD_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess",
        "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
        "VSCODE_NLS_CONFIG": "{\"locale\":\"en\",\"osLocale\":\"en\",\"availableLanguages\":{}}",
        "BROWSER": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/bin/helpers/browser.sh",
        "VSCODE_CWD": "/root",
        "ELECTRON_RUN_AS_NODE": "1",
        "VSCODE_IPC_HOOK_CLI": "/run/user/0/vscode-ipc-469fc308-6c58-4a35-8397-26c032f6743d.sock",
        "VSCODE_L10N_BUNDLE_LOCATION": "",
        "PATH": "/root/.vscode-server/bin/1a5daa3a0231a0fbba4f14db7ec463cf99d7768e/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
        "PYTHONUNBUFFERED": "1",
        "PYTHONIOENCODING": "utf-8"
    }
}
2023-11-25 00:41:39.423 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute.

@karrtikr
Copy link

Thanks for the bug report! We investigate issues in order based on priority and severity, which includes the impact it has on your ability to use the extension to do productive work, and the number of people affected. If other users come forward and leave a comment demonstrating they are seeing/reproducing the problem then we will raise this issue's priority. Thanks for understanding and the patience!

@DearRush
Copy link

DearRush commented Dec 1, 2023

Same problem here. Right now all of my VScode remote connections fail to discover Python Interpreter. Plus, I can not open my Jupyter Notebook file due to this problem. According to my search results of the whole web, the same phenomenon happened in 2021 and 2022. However, on those Github issues websites, I found no solutions.

@ROGERDJQ
Copy link

same problem here

@karrtikr
Copy link

This issue has recently been fixed, if you still notice it please feel free to create a new issue using Python: Report Issue command, and we'll be happy to have a look again. Make sure to provide the latest "debug" level logs.

@karrtikr karrtikr closed this as not planned Won't fix, can't repro, duplicate, stale Mar 28, 2024
@github-actions github-actions bot added the info-needed Issue requires more information from poster label Mar 28, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

4 participants