microsoft / vscode-python

Python extension for Visual Studio Code
https://aka.ms/pvsc-marketplace
MIT License
4.28k stars 1.17k forks source link

Base pyenv versions or virtual envs created using pyenv are missing on macOS #16231

Open albireox opened 3 years ago

albireox commented 3 years ago

Environment data

[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

Interpreter shows all pyenv base versions and virtual environments.

Actual behaviour

When I open the interpreter to select a Python version it shows all the virtual environment I have created in pyenv from the different base version, but not the base versions themselves. That is, I can select a virtual environment XXX based on 3.7.6 but not 3.7.6 itself.

karrtikr commented 3 years ago

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 your understanding and patience!

karrtikr commented 3 years ago

Unfortunately I have not been able to reproduce the issue.

image

Can you clarify what you mean by base pyenv versions, is it the one you install via pyenv install xxx? How are you creating the virtual environment? Please set python.logging.level to info in User settings, reload the window and provide the logs as mentioned in the issue template.

Logs

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

``` XXX ```

karrtikr commented 3 years ago

Closing this issue as no one else reported it, so we suspect it's user error. If you can provide me the info I'll be happy to reopen the issue.

albireox commented 3 years ago

I'm still seeing this issue. Yes, with "base" version I mean the pyenv version installed directly, e.g. if I run pyenv install 3.9.6 the base version would be 3.9.6 (I can do pyenv shell 3.9.6). I can see all virtual environments. I create those using pyenv-virtualenv. I can see other "system" Python version installed in /usr/bin and /usr/local/bin.

The log is below.

Logs
User opted out of experiment group 'pythonSurveyNotificationcf' User opted out of experiment group 'pythonTensorboardExperiment' User opted out of experiment group 'pythonJediLSP' User opted out of experiment group 'pythonaa' User opted out of experiment group 'PythonPyTorchProfiler' User belongs to experiment group 'pythonDeprecatePythonPath' User belongs to experiment group 'pythonDiscoveryModule' User belongs to experiment group 'pythonDiscoveryModuleWithoutWatcher' Info 2021-09-01 17:48:02: Found interpreter for /Users/albireo/.pyenv/versions/3.9.4/envs/archon/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Python interpreter path: ~/.pyenv/versions/3.9.4/envs/archon/bin/python Info 2021-09-01 17:48:02: Display locator refreshing progress, Class name = g, completed in 0ms, has a falsy return value, , Return Value: undefined Info 2021-09-01 17:48:02: Hide locator refreshing progress, Class name = g, completed in 0ms, has a falsy return value, , Return Value: undefined Info 2021-09-01 17:48:02: Searching for conda. Info 2021-09-01 17:48:02: Probing conda binary: conda Info 2021-09-01 17:48:02: Getting poetry for cwd /Users/albireo/Documents/Code/sdss5/archon Info 2021-09-01 17:48:02: Probing poetry binary for /Users/albireo/Documents/Code/sdss5/archon: poetry Info 2021-09-01 17:48:03: Searching for workspace virtual envs in: /Users/albireo/Documents/Code/sdss5/archon Info 2021-09-01 17:48:03: Found: /usr/bin/python --> /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 Info 2021-09-01 17:48:03: Found: /usr/bin/python2 --> /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 Info 2021-09-01 17:48:03: Found: /usr/bin/python2.7 --> /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 Info 2021-09-01 17:48:03: Found: /usr/bin/python3 --> /usr/bin/python3 Info 2021-09-01 17:48:03: Found: /usr/lib/python2.7 --> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 Info 2021-09-01 17:48:03: Found: /usr/local/bin/python3 --> /usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/bin/python3.9 Info 2021-09-01 17:48:03: Start watching: /Users/albireo/Documents/Code/sdss5/archon with pattern python using VSCode API Info 2021-09-01 17:48:03: Start watching: /Users/albireo/Documents/Code/sdss5/archon with pattern */python using VSCode API Info 2021-09-01 17:48:03: Start watching: /Users/albireo/Documents/Code/sdss5/archon with pattern */bin/python using VSCode API Info 2021-09-01 17:48:03: Found: /usr/local/bin/python3.9 --> /usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/bin/python3.9 Info 2021-09-01 17:48:03: Found interpreter for /Users/albireo/.pyenv/versions/miniconda3-latest/envs/STUI/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:03: Found interpreter for /Users/albireo/.pyenv/versions/miniconda3-latest/envs/STUI2/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:03: Start watching: /Users/albireo/.pyenv/versions with pattern python using chokidar Info 2021-09-01 17:48:03: Start watching: /Users/albireo/.pyenv/versions with pattern */python using chokidar Info 2021-09-01 17:48:03: Start watching: /Users/albireo/.pyenv/versions with pattern */bin/python using chokidar Info 2021-09-01 17:48:03: Found interpreter for /Users/albireo/.pyenv/versions/3.9.6/envs/actorcore/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:03: Found interpreter for /Users/albireo/.pyenv/versions/3.9.5/envs/aio-pika/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:03: Found interpreter for /Users/albireo/.pyenv/versions/3.9.6/envs/apoActor/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:03: Found interpreter for /Users/albireo/.pyenv/versions/3.9.2/envs/archon-test/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:03: Found interpreter for /Users/albireo/.pyenv/versions/3.9.6/envs/basecam/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:03: Found interpreter for /Users/albireo/.pyenv/versions/3.9.6/envs/bossICC/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:03: Found interpreter for /Users/albireo/.pyenv/versions/3.9.2/envs/cerebro/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:03: [Error: Command failed: "/Users/albireo/.pyenv/versions/miniconda3-latest/envs/chernosim/bin/python" "/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py" /bin/sh: /Users/albireo/.pyenv/versions/miniconda3-latest/envs/chernosim/bin/python: No such file or directory at ChildProcess.exithandler (child_process.js:317:12) at ChildProcess.emit (events.js:315:20) at maybeClose (internal/child_process.js:1048:16) at Socket. (internal/child_process.js:439:11) at Socket.emit (events.js:315:20) at Pipe. (net.js:673:12)] { killed: false, code: 127, signal: null, cmd: '"/Users/albireo/.pyenv/versions/miniconda3-latest/envs/chernosim/bin/python" "/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py"' } Info 2021-09-01 17:48:03: Found interpreter for /Users/albireo/.pyenv/versions/3.9.5/envs/cherno/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:03: conda info --json: Info 2021-09-01 17:48:03: [SyntaxError: Unexpected end of JSON input at JSON.parse () at m.getInfo (/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/out/client/extension.js:9:201309) at async Function.locate (/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/out/client/extension.js:9:201017) at async c.iterEnvs (/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/out/client/extension.js:78:23809) at async o (/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/out/client/extension.js:1:50239)] Info 2021-09-01 17:48:03: Probing conda binary: /Users/albireo/.conda/bin/conda Info 2021-09-01 17:48:03: [Error: spawn /Users/albireo/.conda/bin/conda ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19) at onErrorNT (internal/child_process.js:465:16) at processTicksAndRejections (internal/process/task_queues.js:80:21)] { errno: -2, code: 'ENOENT', syscall: 'spawn /Users/albireo/.conda/bin/conda', path: '/Users/albireo/.conda/bin/conda', spawnargs: [ 'info', '--json' ] } Info 2021-09-01 17:48:03: Probing conda binary: /Users/albireo/.condarc/bin/conda Info 2021-09-01 17:48:03: [Error: spawn /Users/albireo/.condarc/bin/conda ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19) at onErrorNT (internal/child_process.js:465:16) at processTicksAndRejections (internal/process/task_queues.js:80:21)] { errno: -2, code: 'ENOENT', syscall: 'spawn /Users/albireo/.condarc/bin/conda', path: '/Users/albireo/.condarc/bin/conda', spawnargs: [ 'info', '--json' ] } Info 2021-09-01 17:48:03: Probing conda binary: /Users/albireo/.pyenv/versions/miniconda3-latest/envs/STUI/bin/conda Info 2021-09-01 17:48:03: [Error: spawn /Users/albireo/.pyenv/versions/miniconda3-latest/envs/STUI/bin/conda ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19) at onErrorNT (internal/child_process.js:465:16) at processTicksAndRejections (internal/process/task_queues.js:80:21)] { errno: -2, code: 'ENOENT', syscall: 'spawn /Users/albireo/.pyenv/versions/miniconda3-latest/envs/STUI/bin/conda', path: '/Users/albireo/.pyenv/versions/miniconda3-latest/envs/STUI/bin/conda', spawnargs: [ 'info', '--json' ] } Info 2021-09-01 17:48:03: Probing conda binary: /Users/albireo/.pyenv/versions/miniconda3-latest/envs/stui/bin/conda Info 2021-09-01 17:48:03: [Error: spawn /Users/albireo/.pyenv/versions/miniconda3-latest/envs/stui/bin/conda ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19) at onErrorNT (internal/child_process.js:465:16) at processTicksAndRejections (internal/process/task_queues.js:80:21)] { errno: -2, code: 'ENOENT', syscall: 'spawn /Users/albireo/.pyenv/versions/miniconda3-latest/envs/stui/bin/conda', path: '/Users/albireo/.pyenv/versions/miniconda3-latest/envs/stui/bin/conda', spawnargs: [ 'info', '--json' ] } Info 2021-09-01 17:48:03: Probing conda binary: /Users/albireo/.pyenv/versions/miniconda3-latest/envs/fps_monitor/bin/conda Info 2021-09-01 17:48:03: [Error: spawn /Users/albireo/.pyenv/versions/miniconda3-latest/envs/fps_monitor/bin/conda ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19) at onErrorNT (internal/child_process.js:465:16) at processTicksAndRejections (internal/process/task_queues.js:80:21)] { errno: -2, code: 'ENOENT', syscall: 'spawn /Users/albireo/.pyenv/versions/miniconda3-latest/envs/fps_monitor/bin/conda', path: '/Users/albireo/.pyenv/versions/miniconda3-latest/envs/fps_monitor/bin/conda', spawnargs: [ 'info', '--json' ] } Info 2021-09-01 17:48:03: Probing conda binary: /Users/albireo/.pyenv/versions/miniconda3-latest/bin/conda Info 2021-09-01 17:48:03: Time taken to run poetry env list --full-path in ms 971 Info 2021-09-01 17:48:03: Found poetry via filesystem probing for /Users/albireo/Documents/Code/sdss5/archon: poetry Info 2021-09-01 17:48:03: Cached data exists KeyPrefix=Cache_Method_Output_f.getEnvListCached-Args="/Users/albireo/Documents/Code/sdss5/archon" Info 2021-09-01 17:48:03: Getting poetry for cwd /Users/albireo/Documents/Code/sdss5/archon Info 2021-09-01 17:48:03: Cached data exists KeyPrefix=Cache_Method_Output_f.getEnvListCached-Args="/Users/albireo/Documents/Code/sdss5/archon" Info 2021-09-01 17:48:03: Found interpreter for /Users/albireo/.pyenv/versions/3.9.4/envs/clu/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:03: Found interpreter for /Users/albireo/.pyenv/versions/miniconda3-latest/envs/coordio/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:03: Found interpreter for /Users/albireo/.pyenv/versions/3.9.1/envs/datamodel/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:03: Found interpreter for /Users/albireo/.pyenv/versions/3.9.6/envs/drift/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:04: Found interpreter for /Users/albireo/.pyenv/versions/3.9.1/envs/flicamera/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:04: Found interpreter for /Users/albireo/.pyenv/versions/3.9.2/envs/fliswarm/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:04: Found interpreter for /Users/albireo/.pyenv/versions/miniconda3-latest/envs/fps_monitor/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:04: Found interpreter for /Users/albireo/.pyenv/versions/3.9.6/envs/fps_sandbox/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:04: Found interpreter for /Users/albireo/.pyenv/versions/3.9.5/envs/fvc/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:04: Found interpreter for /Users/albireo/.pyenv/versions/3.9.6/envs/gcameraICC/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:04: Found interpreter for /Users/albireo/.pyenv/versions/3.9.2/envs/govee/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:04: Found interpreter for /Users/albireo/.pyenv/versions/3.9.2/envs/hal/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:04: conda info --json: { "GID": 20, "UID": 501, "active_prefix": null, "active_prefix_name": null, "channels": [ "https://conda.anaconda.org/conda-forge/osx-64", "https://conda.anaconda.org/conda-forge/noarch", "https://conda.anaconda.org/free/osx-64", "https://conda.anaconda.org/free/noarch", "https://repo.anaconda.com/pkgs/main/osx-64", "https://repo.anaconda.com/pkgs/main/noarch", "https://repo.anaconda.com/pkgs/free/osx-64", "https://repo.anaconda.com/pkgs/free/noarch", "https://repo.anaconda.com/pkgs/r/osx-64", "https://repo.anaconda.com/pkgs/r/noarch" ], "conda_build_version": "not installed", "conda_env_version": "4.9.2", "conda_location": "/Users/albireo/.pyenv/versions/miniconda3-latest/lib/python3.7/site-packages/conda", "conda_prefix": "/Users/albireo/.pyenv/versions/miniconda3-latest", "conda_private": false, "conda_shlvl": -1, "conda_version": "4.9.2", "config_files": [ "/Users/albireo/.condarc" ], "default_prefix": "/Users/albireo/.pyenv/versions/miniconda3-latest", "env_vars": { "CIO_TEST": "", "CONDA_ROOT": "/Users/albireo/.pyenv/versions/miniconda3-latest", "CURL_CA_BUNDLE": "", "FPATH": "/usr/local/Cellar/lmod/8.5.12/init/ksh_funcs", "MODULEPATH": "/Users/albireo/.dotfiles/modulefiles", "OMF_PATH": "/Users/albireo/.local/share/omf", "PATH": "/Users/albireo/.pyenv/plugins/pyenv-virtualenv/shims:/Users/albireo/.pyenv/shims:/Users/albireo/.iraf/bin:/Users/albireo/.cargo/bin:/Users/albireo/.pyenv/bin:/Users/albireo/Library/Python/3.9/bin:/usr/local/bin:/usr/local/opt/coreutils/libexec/gnubin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/usr/local/sbin:/sbin:/usr/local/subgit/bin:/Library/Apple/usr/bin:/Applications/VMware Fusion.app/Contents/Public:/Library/TeX/texbin", "PYTHONBREAKPOINT": "ipdb.set_trace", "PYTHONIOENCODING": "utf-8", "PYTHONUNBUFFERED": "1", "PYTHON_CONFIGURE_OPTS": "--enable-framework --with-tcltk-includes='-I/usr/local/opt/tcl-tk/include' --with-tcltk-libs='-L/usr/local/opt/tcl-tk/lib -ltcl8.6 -ltk8.6'", "REQUESTS_CA_BUNDLE": "", "SSL_CERT_FILE": "", "VSCODE_CODE_CACHE_PATH": "/Users/albireo/Library/Application Support/Code - Insiders/CachedData/e7d7e9a9348e6a8cc8c03f877d39cb72e5dfb1ff" }, "envs": [ "/Users/albireo/.pyenv/versions/miniconda3-latest", "/Users/albireo/.pyenv/versions/miniconda3-latest/envs/STUI", "/Users/albireo/.pyenv/versions/miniconda3-latest/envs/STUI2", "/Users/albireo/.pyenv/versions/miniconda3-latest/envs/coordio", "/Users/albireo/.pyenv/versions/miniconda3-latest/envs/fps_monitor", "/Users/albireo/.pyenv/versions/miniconda3-latest/envs/stui" ], "envs_dirs": [ "/Users/albireo/.pyenv/versions/miniconda3-latest/envs", "/Users/albireo/.conda/envs" ], "netrc_file": "/Users/albireo/.netrc", "offline": false, "pkgs_dirs": [ "/Users/albireo/.pyenv/versions/miniconda3-latest/pkgs", "/Users/albireo/.conda/pkgs" ], "platform": "osx-64", "python_version": "3.7.6.final.0", "rc_path": "/Users/albireo/.condarc", "requests_version": "2.25.0", "root_prefix": "/Users/albireo/.pyenv/versions/miniconda3-latest", "root_writable": true, "site_dirs": [], "sys.executable": "/Users/albireo/.pyenv/versions/miniconda3-latest/bin/python", "sys.prefix": "/Users/albireo/.pyenv/versions/miniconda3-latest", "sys.version": "3.7.6 (default, Jan 8 2020, 13:42:34) \n[Clang 4.0.1 (tags/RELEASE_401/final)]", "sys_rc_path": "/Users/albireo/.pyenv/versions/miniconda3-latest/.condarc", "user_agent": "conda/4.9.2 requests/2.25.0 CPython/3.7.6 Darwin/20.6.0 OSX/10.16", "user_rc_path": "/Users/albireo/.condarc", "virtual_pkgs": [ [ "__osx", "10.16", "0" ], [ "__unix", "0", "0" ], [ "__archspec", "1", "x86_64" ] ] } Info 2021-09-01 17:48:04: Found conda via filesystem probing: /Users/albireo/.pyenv/versions/miniconda3-latest/bin/conda Info 2021-09-01 17:48:04: Searching for conda environments using /Users/albireo/.pyenv/versions/miniconda3-latest/bin/conda Info 2021-09-01 17:48:04: Found interpreter for /Users/albireo/.pyenv/versions/3.9.6/envs/hartmannActor/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:04: Found interpreter for /Users/albireo/.pyenv/versions/3.9.5/envs/jaeger/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:04: Found interpreter for /Users/albireo/.pyenv/versions/3.9.5/envs/ln2valve/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:04: Found interpreter for /Users/albireo/.pyenv/versions/3.9.4/envs/mangadesign/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:04: Found interpreter for /Users/albireo/.pyenv/versions/3.7.6/envs/marvin-test/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:04: Found interpreter for /Users/albireo/.pyenv/versions/miniconda3-latest/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:04: Found interpreter for /Users/albireo/.pyenv/versions/3.9.6/envs/mugatu/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:04: Found interpreter for /Users/albireo/.pyenv/versions/3.9.6/envs/opscore/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:04: Found interpreter for /Users/albireo/.pyenv/versions/3.9.2/envs/pymangle/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:04: Found interpreter for /Users/albireo/.pyenv/versions/3.9.1/envs/roboscheduler/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:04: Found interpreter for /Users/albireo/.pyenv/versions/3.9.1/envs/sdssdb/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:04: Found interpreter for /Users/albireo/.pyenv/versions/3.9.4/envs/sdssdb-test/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:04: Found interpreter for /Users/albireo/.pyenv/versions/3.8.3/envs/sdsstools/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:04: Time taken to run poetry config virtualenvs.path in ms 896 Info 2021-09-01 17:48:04: Start watching: /Users/albireo/Library/Caches/pypoetry/virtualenvs with pattern python using chokidar Info 2021-09-01 17:48:04: Start watching: /Users/albireo/Library/Caches/pypoetry/virtualenvs with pattern */python using chokidar Info 2021-09-01 17:48:04: Start watching: /Users/albireo/Library/Caches/pypoetry/virtualenvs with pattern */bin/python using chokidar Info 2021-09-01 17:48:04: Found interpreter for /Users/albireo/.pyenv/versions/3.9.4/envs/simple_com_server/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:04: conda info --json: { "GID": 20, "UID": 501, "active_prefix": null, "active_prefix_name": null, "channels": [ "https://conda.anaconda.org/conda-forge/osx-64", "https://conda.anaconda.org/conda-forge/noarch", "https://conda.anaconda.org/free/osx-64", "https://conda.anaconda.org/free/noarch", "https://repo.anaconda.com/pkgs/main/osx-64", "https://repo.anaconda.com/pkgs/main/noarch", "https://repo.anaconda.com/pkgs/free/osx-64", "https://repo.anaconda.com/pkgs/free/noarch", "https://repo.anaconda.com/pkgs/r/osx-64", "https://repo.anaconda.com/pkgs/r/noarch" ], "conda_build_version": "not installed", "conda_env_version": "4.9.2", "conda_location": "/Users/albireo/.pyenv/versions/miniconda3-latest/lib/python3.7/site-packages/conda", "conda_prefix": "/Users/albireo/.pyenv/versions/miniconda3-latest", "conda_private": false, "conda_shlvl": -1, "conda_version": "4.9.2", "config_files": [ "/Users/albireo/.condarc" ], "default_prefix": "/Users/albireo/.pyenv/versions/miniconda3-latest", "env_vars": { "CIO_TEST": "", "CONDA_ROOT": "/Users/albireo/.pyenv/versions/miniconda3-latest", "CURL_CA_BUNDLE": "", "FPATH": "/usr/local/Cellar/lmod/8.5.12/init/ksh_funcs", "MODULEPATH": "/Users/albireo/.dotfiles/modulefiles", "OMF_PATH": "/Users/albireo/.local/share/omf", "PATH": "/Users/albireo/.pyenv/plugins/pyenv-virtualenv/shims:/Users/albireo/.pyenv/shims:/Users/albireo/.iraf/bin:/Users/albireo/.cargo/bin:/Users/albireo/.pyenv/bin:/Users/albireo/Library/Python/3.9/bin:/usr/local/bin:/usr/local/opt/coreutils/libexec/gnubin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/usr/local/sbin:/sbin:/usr/local/subgit/bin:/Library/Apple/usr/bin:/Applications/VMware Fusion.app/Contents/Public:/Library/TeX/texbin", "PYTHONBREAKPOINT": "ipdb.set_trace", "PYTHONIOENCODING": "utf-8", "PYTHONUNBUFFERED": "1", "PYTHON_CONFIGURE_OPTS": "--enable-framework --with-tcltk-includes='-I/usr/local/opt/tcl-tk/include' --with-tcltk-libs='-L/usr/local/opt/tcl-tk/lib -ltcl8.6 -ltk8.6'", "REQUESTS_CA_BUNDLE": "", "SSL_CERT_FILE": "", "VSCODE_CODE_CACHE_PATH": "/Users/albireo/Library/Application Support/Code - Insiders/CachedData/e7d7e9a9348e6a8cc8c03f877d39cb72e5dfb1ff" }, "envs": [ "/Users/albireo/.pyenv/versions/miniconda3-latest", "/Users/albireo/.pyenv/versions/miniconda3-latest/envs/STUI", "/Users/albireo/.pyenv/versions/miniconda3-latest/envs/STUI2", "/Users/albireo/.pyenv/versions/miniconda3-latest/envs/coordio", "/Users/albireo/.pyenv/versions/miniconda3-latest/envs/fps_monitor", "/Users/albireo/.pyenv/versions/miniconda3-latest/envs/stui" ], "envs_dirs": [ "/Users/albireo/.pyenv/versions/miniconda3-latest/envs", "/Users/albireo/.conda/envs" ], "netrc_file": "/Users/albireo/.netrc", "offline": false, "pkgs_dirs": [ "/Users/albireo/.pyenv/versions/miniconda3-latest/pkgs", "/Users/albireo/.conda/pkgs" ], "platform": "osx-64", "python_version": "3.7.6.final.0", "rc_path": "/Users/albireo/.condarc", "requests_version": "2.25.0", "root_prefix": "/Users/albireo/.pyenv/versions/miniconda3-latest", "root_writable": true, "site_dirs": [], "sys.executable": "/Users/albireo/.pyenv/versions/miniconda3-latest/bin/python", "sys.prefix": "/Users/albireo/.pyenv/versions/miniconda3-latest", "sys.version": "3.7.6 (default, Jan 8 2020, 13:42:34) \n[Clang 4.0.1 (tags/RELEASE_401/final)]", "sys_rc_path": "/Users/albireo/.pyenv/versions/miniconda3-latest/.condarc", "user_agent": "conda/4.9.2 requests/2.25.0 CPython/3.7.6 Darwin/20.6.0 OSX/10.16", "user_rc_path": "/Users/albireo/.condarc", "virtual_pkgs": [ [ "__osx", "10.16", "0" ], [ "__unix", "0", "0" ], [ "__archspec", "1", "x86_64" ] ] } Info 2021-09-01 17:48:04: Found conda environment: /Users/albireo/.pyenv/versions/miniconda3-latest/bin/python Info 2021-09-01 17:48:04: Found conda environment: /Users/albireo/.pyenv/versions/miniconda3-latest/envs/STUI/bin/python Info 2021-09-01 17:48:04: Found conda environment: /Users/albireo/.pyenv/versions/miniconda3-latest/envs/STUI2/bin/python Info 2021-09-01 17:48:04: Found conda environment: /Users/albireo/.pyenv/versions/miniconda3-latest/envs/coordio/bin/python Info 2021-09-01 17:48:04: Found conda environment: /Users/albireo/.pyenv/versions/miniconda3-latest/envs/fps_monitor/bin/python Info 2021-09-01 17:48:04: Found conda environment: /Users/albireo/.pyenv/versions/miniconda3-latest/envs/stui/bin/python Info 2021-09-01 17:48:04: Searching for conda. Info 2021-09-01 17:48:04: Cached data exists KeyPrefix=Cache_Method_Output_m.getEnvList-Args= Info 2021-09-01 17:48:04: Found interpreter for /Users/albireo/.pyenv/versions/3.9.2/envs/target_selection/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:04: Found interpreter for /Users/albireo/.pyenv/versions/3.9.6/envs/thorcam/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:04: Found interpreter for /Users/albireo/.pyenv/versions/3.9.4/envs/telnetlib3/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:04: Found interpreter for /Users/albireo/.pyenv/versions/3.9.1/envs/tron/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:04: Found interpreter for /Users/albireo/.pyenv/versions/3.9.1/envs/tree/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:05: Found interpreter for /usr/bin/python3,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:05: [Error: Command failed: "/usr/lib/python2.7" "/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py" /bin/sh: /usr/lib/python2.7: is a directory at ChildProcess.exithandler (child_process.js:317:12) at ChildProcess.emit (events.js:315:20) at maybeClose (internal/child_process.js:1048:16) at Socket. (internal/child_process.js:439:11) at Socket.emit (events.js:315:20) at Pipe. (net.js:673:12)] { killed: false, code: 126, signal: null, cmd: '"/usr/lib/python2.7" "/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py"' } Info 2021-09-01 17:48:05: Found interpreter for /usr/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:05: Found interpreter for /usr/local/bin/python3,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:05: Found interpreter for /Users/albireo/.pyenv/versions/miniconda3-latest/envs/stui/bin/python,/Users/albireo/.vscode-insiders/extensions/ms-python.python-2021.10.1183791216-dev/pythonFiles/interpreterInfo.py Info 2021-09-01 17:48:07: Display locator refreshing progress, Class name = g, completed in 0ms, has a falsy return value, , Return Value: undefined Info 2021-09-01 17:48:07: Hide locator refreshing progress, Class name = g, completed in 0ms, has a falsy return value, , Return Value: undefined Info 2021-09-01 17:48:07: Cached data exists getEnvironmentVariables, /Users/albireo/Documents/Code/sdss5/archon/tests/controller/test_expose.py Info 2021-09-01 17:48:07: Cached data exists getEnvironmentVariables, /Users/albireo/Documents/Code/sdss5/archon/tests/controller/test_expose.py Starting Pylance language server. Info 2021-09-01 17:48:10: Cached data exists getEnvironmentVariables, /Users/albireo/Documents/Code/sdss5/archon/tests/controller/test_expose.py Info 2021-09-01 17:48:10: > ~/.pyenv/versions/3.9.4/envs/archon/bin/python -m flake8 --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s ~/Documents/Code/sdss5/archon/tests/controller/test_expose.py > ~/.pyenv/versions/3.9.4/envs/archon/bin/python -m flake8 --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s ~/Documents/Code/sdss5/archon/tests/controller/test_expose.py Info 2021-09-01 17:48:10: cwd: ~/Documents/Code/sdss5/archon cwd: ~/Documents/Code/sdss5/archon Info 2021-09-01 17:48:10: > ~/.pyenv/versions/3.9.4/envs/archon/bin/python -m flake8 --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s ~/Documents/Code/sdss5/archon/tests/controller/test_expose.py > ~/.pyenv/versions/3.9.4/envs/archon/bin/python -m flake8 --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s ~/Documents/Code/sdss5/archon/tests/controller/test_expose.py Info 2021-09-01 17:48:10: cwd: ~/Documents/Code/sdss5/archon cwd: ~/Documents/Code/sdss5/archon ##########Linting Output - flake8########## Info 2021-09-01 17:48:10: Cached data exists getEnvironmentVariables, /Users/albireo/Documents/Code/sdss5/archon Info 2021-09-01 17:48:11: Starting language server, Class name = r, completed in 437ms, has a falsy return value, , Return Value: undefined Info 2021-09-01 17:48:11: Cached data exists getEnvironmentVariables, /Users/albireo/Documents/Code/sdss5/archon/tests/controller/test_expose.py Info 2021-09-01 17:48:11: [object Object]. Shell identified as undefined Info 2021-09-01 17:48:11: Shell path 'fish' Info 2021-09-01 17:48:11: Shell path identified as shell 'fish' Info 2021-09-01 17:48:11: Terminal shell path 'fish' identified as shell 'fish' Info 2021-09-01 17:48:11: [object Object]. Shell identified as fish Info 2021-09-01 17:48:11: Shell identified as 'fish' Info 2021-09-01 17:48:11: Cached data exists getEnvironmentVariables, /Users/albireo/Documents/Code/sdss5/archon/tests/controller/test_expose.py Info 2021-09-01 17:48:11: Searching for conda. Info 2021-09-01 17:48:11: conda info --json: { "GID": 20, "UID": 501, "active_prefix": null, "active_prefix_name": null, "channels": [ "https://conda.anaconda.org/conda-forge/osx-64", "https://conda.anaconda.org/conda-forge/noarch", "https://conda.anaconda.org/free/osx-64", "https://conda.anaconda.org/free/noarch", "https://repo.anaconda.com/pkgs/main/osx-64", "https://repo.anaconda.com/pkgs/main/noarch", "https://repo.anaconda.com/pkgs/free/osx-64", "https://repo.anaconda.com/pkgs/free/noarch", "https://repo.anaconda.com/pkgs/r/osx-64", "https://repo.anaconda.com/pkgs/r/noarch" ], "conda_build_version": "not installed", "conda_env_version": "4.9.2", "conda_location": "/Users/albireo/.pyenv/versions/miniconda3-latest/lib/python3.7/site-packages/conda", "conda_prefix": "/Users/albireo/.pyenv/versions/miniconda3-latest", "conda_private": false, "conda_shlvl": -1, "conda_version": "4.9.2", "config_files": [ "/Users/albireo/.condarc" ], "default_prefix": "/Users/albireo/.pyenv/versions/miniconda3-latest", "env_vars": { "CIO_TEST": "", "CONDA_ROOT": "/Users/albireo/.pyenv/versions/miniconda3-latest", "CURL_CA_BUNDLE": "", "FPATH": "/usr/local/Cellar/lmod/8.5.12/init/ksh_funcs", "MODULEPATH": "/Users/albireo/.dotfiles/modulefiles", "OMF_PATH": "/Users/albireo/.local/share/omf", "PATH": "/Users/albireo/.pyenv/plugins/pyenv-virtualenv/shims:/Users/albireo/.pyenv/shims:/Users/albireo/.iraf/bin:/Users/albireo/.cargo/bin:/Users/albireo/.pyenv/bin:/Users/albireo/Library/Python/3.9/bin:/usr/local/bin:/usr/local/opt/coreutils/libexec/gnubin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/usr/local/sbin:/sbin:/usr/local/subgit/bin:/Library/Apple/usr/bin:/Applications/VMware Fusion.app/Contents/Public:/Library/TeX/texbin", "PYTHONBREAKPOINT": "ipdb.set_trace", "PYTHONIOENCODING": "utf-8", "PYTHONUNBUFFERED": "1", "PYTHON_CONFIGURE_OPTS": "--enable-framework --with-tcltk-includes='-I/usr/local/opt/tcl-tk/include' --with-tcltk-libs='-L/usr/local/opt/tcl-tk/lib -ltcl8.6 -ltk8.6'", "REQUESTS_CA_BUNDLE": "", "SSL_CERT_FILE": "", "VSCODE_CODE_CACHE_PATH": "/Users/albireo/Library/Application Support/Code - Insiders/CachedData/e7d7e9a9348e6a8cc8c03f877d39cb72e5dfb1ff" }, "envs": [ "/Users/albireo/.pyenv/versions/miniconda3-latest", "/Users/albireo/.pyenv/versions/miniconda3-latest/envs/STUI", "/Users/albireo/.pyenv/versions/miniconda3-latest/envs/STUI2", "/Users/albireo/.pyenv/versions/miniconda3-latest/envs/coordio", "/Users/albireo/.pyenv/versions/miniconda3-latest/envs/fps_monitor", "/Users/albireo/.pyenv/versions/miniconda3-latest/envs/stui" ], "envs_dirs": [ "/Users/albireo/.pyenv/versions/miniconda3-latest/envs", "/Users/albireo/.conda/envs" ], "netrc_file": "/Users/albireo/.netrc", "offline": false, "pkgs_dirs": [ "/Users/albireo/.pyenv/versions/miniconda3-latest/pkgs", "/Users/albireo/.conda/pkgs" ], "platform": "osx-64", "python_version": "3.7.6.final.0", "rc_path": "/Users/albireo/.condarc", "requests_version": "2.25.0", "root_prefix": "/Users/albireo/.pyenv/versions/miniconda3-latest", "root_writable": true, "site_dirs": [], "sys.executable": "/Users/albireo/.pyenv/versions/miniconda3-latest/bin/python", "sys.prefix": "/Users/albireo/.pyenv/versions/miniconda3-latest", "sys.version": "3.7.6 (default, Jan 8 2020, 13:42:34) \n[Clang 4.0.1 (tags/RELEASE_401/final)]", "sys_rc_path": "/Users/albireo/.pyenv/versions/miniconda3-latest/.condarc", "user_agent": "conda/4.9.2 requests/2.25.0 CPython/3.7.6 Darwin/20.6.0 OSX/10.16", "user_rc_path": "/Users/albireo/.condarc", "virtual_pkgs": [ [ "__osx", "10.16", "0" ], [ "__unix", "0", "0" ], [ "__archspec", "1", "x86_64" ] ] } Info 2021-09-01 17:48:13: Display locator refreshing progress, Class name = g, completed in 1ms, has a falsy return value, , Return Value: undefined Info 2021-09-01 17:48:13: Hide locator refreshing progress, Class name = g, completed in 0ms, has a falsy return value, , Return Value: undefined Info 2021-09-01 17:48:34: Cached data exists getEnvironmentVariables, tasks Info 2021-09-01 17:48:43: Cached data exists getEnvironmentVariables, /Users/albireo/Documents/Code/sdss5/archon Info 2021-09-01 17:49:39: Cached data exists getEnvironmentVariables, extension-output-ms-python.python-#2
karrtikr commented 3 years ago

Thanks for the prompt response! Can you please show me the contents of /Users/albireo/.pyenv/versions/3.9.4, does it have a valid python binary? I'm still not able to reproduce it for myself as you can see here:

Also, I see you have opted out of certain experiments, can you send me your user settings?

albireox commented 3 years ago

Here's the output

$ ls /Users/albireo/.pyenv/versions/3.9.4
total 0
drwxr-xr-x 6 albireo staff 192 Apr  5 08:51 Python.framework/
lrwxr-xr-x 1 albireo staff  74 Apr  5 08:52 bin -> /Users/albireo/.pyenv/versions/3.9.4/Python.framework/Versions/Current/bin/
lrwxr-xr-x 1 albireo staff  74 Apr  5 08:51 bin.orig -> /Users/albireo/.pyenv/versions/3.9.4/Python.framework/Versions/Current/bin/
drwxr-xr-x 8 albireo staff 256 Apr 30 12:22 envs/
lrwxr-xr-x 1 albireo staff  78 Apr  5 08:49 include -> /Users/albireo/.pyenv/versions/3.9.4/Python.framework/Versions/Current/include/
lrwxr-xr-x 1 albireo staff  74 Apr  5 08:49 lib -> /Users/albireo/.pyenv/versions/3.9.4/Python.framework/Versions/Current/lib/
lrwxr-xr-x 1 albireo staff  76 Apr  5 08:49 share -> /Users/albireo/.pyenv/versions/3.9.4/Python.framework/Versions/Current/share/

There's a python file in /Users/albireo/.pyenv/versions/3.9.4/bin/

albireox commented 3 years ago

One more thing that may be important, my default shell is fish.

karrtikr commented 3 years ago

I do not see the python file in the output you sent. Can you try running /Users/albireo/.pyenv/versions/3.9.4/bin/python for me to make sure it exists?

albireox commented 3 years ago
$ ls /Users/albireo/.pyenv/versions/3.9.4/bin/python              
lrwxr-xr-x 1 albireo staff 9 Apr  5 08:51 /Users/albireo/.pyenv/versions/3.9.4/bin/python -> python3.9*
karrtikr commented 3 years ago

Any idea why the python binary did not show up in the output you sent here? https://github.com/microsoft/vscode-python/issues/16231#issuecomment-911133610 I'll be back in a hr.

albireox commented 3 years ago

I don't think the python binary (or the link to it) shows up in the root of the pyenv version. I think it's supposed to be inside bin/. It's the same with the virtual environments that do show up for me in VSCode.

$ ls /Users/albireo/.pyenv/versions/archon/
total 4.0K
drwxr-xr-x 95 albireo staff 3.0K Aug 22 21:33 bin/
drwxr-xr-x  2 albireo staff   64 Apr  5 08:53 include/
drwxr-xr-x  3 albireo staff   96 Apr  5 08:53 lib/
-rw-r--r--  1 albireo staff  131 Apr  5 08:53 pyvenv.cfg
drwxr-xr-x  3 albireo staff   96 Apr  5 10:12 share/
karrtikr commented 2 years ago

I have prepared a special extension for you with more logging for this case (PR https://github.com/microsoft/vscode-python/pull/17792): https://github.com/microsoft/vscode-python/suites/4100306179/artifacts/104587927, use Extension: Install from VSIX to install the VSIX and report back the logs again, thanks.

albireox commented 2 years ago

Thanks for looking into this. Here're the logs with the new version.

Log ``` Experiment 'pythonDeprecatePythonPath' is active Experiment 'pythonDiscoveryModule' is active > conda info --json > "poetry env list --full-path" cwd: ~/Documents/Code/sdss5/jaeger > ~/.pyenv/versions/3.9.5/envs/jaeger/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/miniconda3-latest/envs/STUI/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py Python interpreter path: ~/.pyenv/versions/3.9.5/envs/jaeger/bin/python > ~/.pyenv/versions/miniconda3-latest/envs/STUI2/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.6/envs/actorcore/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.5/envs/aio-pika/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.6/envs/apoActor/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.4/envs/archon/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.2/envs/archon-test/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.6/envs/basecam/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.6/envs/bossICC/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.2/envs/cerebro/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.5/envs/cherno/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/miniconda3-latest/envs/chernosim/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.4/envs/clu/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/miniconda3-latest/envs/coordio/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.1/envs/datamodel/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.6/envs/drift/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.1/envs/flicamera/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.2/envs/fliswarm/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.conda/bin/conda info --json > ~/.condarc/bin/conda info --json > ~/.pyenv/versions/miniconda3-latest/envs/STUI/bin/conda info --json > ~/.pyenv/versions/miniconda3-latest/envs/stui/bin/conda info --json > ~/.pyenv/versions/miniconda3-latest/envs/fps_monitor/bin/conda info --json > ~/.pyenv/versions/miniconda3-latest/bin/conda info --json > ~/.pyenv/versions/miniconda3-latest/envs/fps_monitor/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.6/envs/fps_sandbox/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.5/envs/fvc/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.6/envs/gcameraICC/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.2/envs/govee/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > "poetry config virtualenvs.path" cwd: ~/Documents/Code/sdss5/jaeger > ~/.pyenv/versions/2.7.18/envs/guiderActor/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.2/envs/hal/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.6/envs/hartmannActor/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.5/envs/ln2valve/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.7/envs/lvmnps/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.4/envs/mangadesign/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.7.6/envs/marvin-test/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/miniconda3-latest/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.6/envs/mugatu/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.6/envs/opscore/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.2/envs/pymangle/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.7/envs/rinzler/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.1/envs/roboscheduler/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.1/envs/sdssdb/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.4/envs/sdssdb-test/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.8.3/envs/sdsstools/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.4/envs/simple_com_server/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.2/envs/target_selection/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.4/envs/telnetlib3/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.6/envs/thorcam/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.1/envs/tree/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/3.9.1/envs/tron/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > /usr/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > /usr/bin/python3 ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > /usr/lib/python2.7 ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > /usr/local/bin/python3 ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py > ~/.pyenv/versions/miniconda3-latest/envs/stui/bin/python ~/.vscode-insiders/extensions/ms-python.python-2021.11.1360583795-dev/pythonFiles/interpreterInfo.py Starting Pylance language server. ```
karrtikr commented 2 years ago

It seems you missed to set python.logging.level to info as mentioned here in the original instructions https://github.com/microsoft/vscode-python/issues/16231#issuecomment-910878659, can you please do that? Thank you for testing this.

albireox commented 2 years ago

Oh right, sorry about that. This looks more like it.

https://gist.github.com/albireox/0ee867abd2f8f8843c308ce0db40d10e

karrtikr commented 2 years ago

Great, I'll have a look. From my understanding I'm trying to find out why /Users/albireo/.pyenv/versions/3.9.4/bin/python wasn't discovered.

karrtikr commented 2 years ago

Can you do the same with https://github.com/microsoft/vscode-python/suites/4101975410/artifacts/104650861? I do see /Users/albireo/.pyenv/versions/3.9.4/bin in previous logs. In this VSIX, I'm trying to see if we ever look into that directory (or if we identify correctly that it's a directory).

albireox commented 2 years ago

Here's the new log.

https://gist.github.com/albireox/97f1ef5b3a34a6e278ffdb402deab78e

karrtikr commented 2 years ago

I have figured out the cause, thanks! It is because bin directory is a symlink, and we only check if it's a directory before attempting to read it.

https://github.com/microsoft/vscode-python/blob/7eb0649321f133333b1bc0b8fcacb35e3fe47399/src/client/pythonEnvironments/common/commonUtils.ts#L100

Some part of this issue was fixed with https://github.com/microsoft/vscode-python/pull/15451.

albireox commented 2 years ago

Awesome, thanks!

albireox commented 2 years ago

Gentle poke to see if there are any news or workarounds for this one.

karrtikr commented 2 years ago

Unfortunately there isn't any workaround right now, sorry. We haven't been able to prioritize this.

albireox commented 2 years ago

No worries and thanks for the reply!

albireox commented 2 years ago

Pinging again about this. As far as I can see it's still happening.

albireox commented 1 year ago

Just a note to say this is still happening. Any chance this can be prioritised at some point?

karrtikr commented 1 year ago

I'll take this on in the next debt week :) expect ETA 2 months

anshuman73 commented 2 months ago

Bumping incase this can be resolved sometime soon 😅