Repository navigation
Discovering python interpreters never finishes due to presence of symbolic link loop #21310
Description
Type: Bug
Vscode Version: Visual Studio Code Insiders
Extensions: Copilot Nightly, Copilot chat, Python, Pylance (Only these)
I've reviewed the former similar issues, but they can't solve my problem(sad).
I tried to set python.logging.level to "debug", but it says this setting is deprecated. So the following is the only information I got.
output -> python:
2023-05-27 15:19:22.087 [info] Experiment 'pythonPromptNewFormatterExt' is active
2023-05-27 15:19:22.088 [info] Experiment 'pythonPromptNewToolsExt' is active
2023-05-27 15:19:22.088 [info] Test server listening.
2023-05-27 15:19:22.088 [info] > conda info --json
2023-05-27 15:20:11.876 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute.
2023-05-27 15:20:11.898 [info] > python -c "import sys;print(sys.executable)"
2023-05-27 15:20:12.000 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute.
Extension version: 2023.9.11461009
VS Code version: Code - Insiders 1.79.0-insider (2dfb838, 2023-05-26T05:22:45.569Z)
OS version: Windows_NT x64 10.0.22621
Modes: Unsupported
Remote OS version: Linux x64 5.19.0-41-generic
System Info
| Item | Value |
|---|---|
| CPUs | 12th Gen Intel(R) Core(TM) i5-12500H (16 x 3110) |
| GPU Status | 2d_canvas: enabled canvas_oop_rasterization: disabled_off 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.64GB (6.49GB free) |
| Process Argv | --crash-reporter-id 19921559-5588-4c15-90c1-006c63d2772a --crash-reporter-id 19921559-5588-4c15-90c1-006c63d2772a |
| Screen Reader | no |
| VM | 0% |
| Item | Value |
|---|---|
| Remote | SSH: DstGPU |
| OS | Linux x64 5.19.0-41-generic |
| CPUs | Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz (48 x 1200) |
| Memory (System) | 251.78GB (214.46GB free) |
| VM | 0% |
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256198
vslsvsres303:30308271
pythontb:30258533
vsc_aacf:30263846
pythonptprofiler:30281269
vshan820:30294714
vscod805:30301674
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30404738
cppdebug:30492333
vsclangdf:30492506
c4g48928:30535728
dsvsc012:30540252
pynewext54:30618038
pylantcb52:30590116
pyind779:30611226
pythonsymbol12:30651887
2i9eh265:30646982
showlangstatbar:30737417
pythonms35:30671666
03d35959:30680466
ecj1e332:30687743
pythonfmttext:30716741
pythoncmvfstr:30726892
fixshowwlkth:30724385
showsbindicator:30724477
pythongtdpath:30726887
Activity
HoytXU commentedon May 27, 2023
If you need any more information to solve the problem, please let me know. Thank you so much.
HoytXU commentedon May 27, 2023
If I run
conda info --jsonandpython -c "import sys;print(sys.executable)"in a terminal, I get these output. (If these can help)After I run
conda info --json, I press ctrl c to run the next command.(base) liuyx@gpu1:~$ conda info --json
{
"GID": 1104,
"UID": 1104,
"active_prefix": "/data2/users/liuyx/anaconda3",
"active_prefix_name": "base",
"av_data_dir": "/data2/users/liuyx/anaconda3/etc/conda",
"av_metadata_url_base": null,
"channels": [
"https://repo.anaconda.com/pkgs/main/linux-64",
"https://repo.anaconda.com/pkgs/main/noarch",
"https://repo.anaconda.com/pkgs/r/linux-64",
"https://repo.anaconda.com/pkgs/r/noarch"
],
"conda_build_version": "3.22.0",
"conda_env_version": "23.3.1",
"conda_location": "/data2/users/liuyx/anaconda3/lib/python3.9/site-packages/conda",
"conda_prefix": "/data2/users/liuyx/anaconda3",
"conda_shlvl": 1,
"conda_version": "23.3.1",
"config_files": [],
"default_prefix": "/data2/users/liuyx/anaconda3",
"env_vars": {
"CIO_TEST": "",
"CONDA_DEFAULT_ENV": "base",
"CONDA_EXE": "/data2/users/liuyx/anaconda3/bin/conda",
"CONDA_PREFIX": "/data2/users/liuyx/anaconda3",
"CONDA_PROMPT_MODIFIER": "(base) ",
"CONDA_PYTHON_EXE": "/data2/users/liuyx/anaconda3/bin/python",
"CONDA_ROOT": "/data2/users/liuyx/anaconda3",
"CONDA_SHLVL": "1",
"CURL_CA_BUNDLE": "",
"LD_LIBRARY_PATH": "/data2/users/liuyx/cuda-11.6/lib64:/usr/lib:/lib/x86_64-linux-gnu:/data2/users/liuyx/cuda-11.6/lib64:/usr/lib:/lib/x86_64-linux-gnu:",
"LD_PRELOAD": "",
"PATH": "/data2/users/liuyx/cuda-11.6/bin:/data2/users/liuyx/.vscode-server-insiders/bin/2dfb838f494f035099e999f0cd0eff5f1f488a30/bin/remote-cli:/data2/users/liuyx/cuda-11.6/bin:/data2/users/liuyx/anaconda3/bin:/data2/users/liuyx/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
"REQUESTS_CA_BUNDLE": "",
"SSL_CERT_FILE": ""
},
"envs": [
"/data2/users/liuyx/anaconda3",
"/data2/users/liuyx/anaconda3/envs/Project"
],
"envs_dirs": [
"/data2/users/liuyx/anaconda3/envs",
"/data2/users/liuyx/.conda/envs"
],
"netrc_file": null,
"offline": false,
"pkgs_dirs": [
"/data2/users/liuyx/anaconda3/pkgs",
"/data2/users/liuyx/.conda/pkgs"
],
"platform": "linux-64",
"python_version": "3.9.13.final.0",
"rc_path": "/data2/users/liuyx/.condarc",
"requests_version": "2.28.1",
"root_prefix": "/data2/users/liuyx/anaconda3",
"root_writable": true,
"site_dirs": [],
"sys.executable": "/data2/users/liuyx/anaconda3/bin/python",
"sys.prefix": "/data2/users/liuyx/anaconda3",
"sys.version": "3.9.13 (main, Aug 25 2022, 23:26:10) \n[GCC 11.2.0]",
"sys_rc_path": "/data2/users/liuyx/anaconda3/.condarc",
"user_agent": "conda/23.3.1 requests/2.28.1 CPython/3.9.13 Linux/5.19.0-41-generic ubuntu/22.04.1 glibc/2.35",
"user_rc_path": "/data2/users/liuyx/.condarc",
"virtual_pkgs": [
[
"__archspec",
"1",
"x86_64"
],
[
"__glibc",
"2.35",
"0"
],
[
"__linux",
"5.19.0",
"0"
],
[
"__unix",
"0",
"0"
]
]
}
(base) liuyx@gpu1:~$ python -c "import sys;print(sys.executable)"
/data2/users/liuyx/anaconda3/bin/python
karrtikr commentedon May 30, 2023
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!
sachit-menon commentedon May 31, 2023
I have a similar issue where "Discovering Python Interpreters" goes on forever, meaning Copilot is never initialized, making it useless. I'm on a Mac using Remote-SSH into a Linux machine. Here is my debug panel:
amit9oct commentedon Jun 20, 2023
Hi,
I'm facing the exact same issues. "Discovering Python Interpreters" never finishes. The following are the logs from the Python Extension:
bicepjai commentedon Jul 3, 2023
I am facing the same issue
gravic07 commentedon Jul 8, 2023
+1
Anutlet commentedon Jul 12, 2023
+1
Zsirl commentedon Jul 13, 2023
me too.
Discovering python interpreters forever!
karrtikr commentedon Jul 13, 2023
Hi all, please provide the debug logs which can help diagnose the issue:
Developer: Set log levelcommandPython-> SelectTraceDeveloper: Reload WindowcommandAfter which, please provide the logs:
Output for
Pythonin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel toPython)51 remaining items
Do not resolve symbolic links in posix locator if they exceed the cou…
karrtikr commentedon Jul 25, 2023
LachlanGreen Fix should be out, let me know if that helps.
amunger commentedon Jul 27, 2023
got it to repro in stable, and not in insiders 👍
Merged PR posit-dev/positron-python#213: Merge python extension relea…
Merged PR posit-dev/positron-python#213: Merge python extension relea…