Type: Bug
Behaviour
When I pick "Python: Select Interpreter" from the command pallette and then pick "Use Python from python.defaultInterpreterPath setting" I get a failed to resolve error: https://cdn.zappy.app/2af8899b7bd3748f8d924a85cd760381.png
This seems to happen on all my projects. Probably worth noting: all my projects use poetry and store the virtual environment in a .venv directory that is not at the top level of the project.
Possibly related to !25190 If I symlink my .venv directory to venv (no period), then I have the option to select my virtual environment as a workspace option and it seems to select correctly.
FWIW, the entry I have in settings.json for defaultInterpreterPath is:
"python.defaultInterpreterPath": "web/backend/.venv/bin/python",
On other projects (where I get the same error) that path varies a bit, but generally is always somedirectory/.venv/bin/python
Steps to reproduce:
- pick "Python: Select Interpreter" from the command pallette
- pick "Use Python from
python.defaultInterpreterPath setting"
- see error
Diagnostic data
In the Python logs I see:
2025-07-28 13:21:42.538 [error] Python Extension: sendTelemetry l [Error]: Failed to resolve env "/web/backend/.venv/bin/python"
at se (/Users/adamparkin/.vscode/extensions/ms-python.vscode-python-envs-1.2.0-darwin-arm64/dist/extension.js:2:572709)
at ae (/Users/adamparkin/.vscode/extensions/ms-python.vscode-python-envs-1.2.0-darwin-arm64/dist/extension.js:2:570669)
at Immediate.<anonymous> (/Users/adamparkin/.vscode/extensions/ms-python.vscode-python-envs-1.2.0-darwin-arm64/dist/extension.js:2:566963)
at processImmediate (node:internal/timers:485:21) {
code: -4,
data: undefined
}
Extension version: 2025.10.1
VS Code version: Code 1.102.1 (Universal) (7adae6a56e34cb64d08899664b814cf620465925, 2025-07-15T16:41:17.147Z)
OS version: Darwin arm64 24.5.0
Modes:
- Python version (& distribution if applicable, e.g. Anaconda): 3.13.4.final.0
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): System
- Value of the
python.languageServer setting: Pylance
User Settings
venvPath: "<placeholder>"
languageServer: "Pylance"
testing
• pytestArgs: "<placeholder>"
• pytestEnabled: true
• unittestArgs: "<placeholder>"
Installed Extensions
| Extension Name |
Extension Id |
Version |
| atlascode |
atl |
3.8.6 |
| auto-rename-tag |
for |
0.1.10 |
| autodocstring |
njp |
0.6.1 |
| avro |
str |
0.5.0 |
| better-comments |
aar |
3.0.2 |
| black-formatter |
ms- |
2025.2.0 |
| change-case |
wma |
1.0.0 |
| code-runner |
for |
0.12.2 |
| code-spell-checker |
str |
4.0.47 |
| codesnap |
adp |
1.3.4 |
| copilot |
Git |
1.346.0 |
| copilot-chat |
Git |
0.29.1 |
| copy-markdown-as-html |
jer |
1.1.0 |
| debugpy |
ms- |
2025.10.0 |
| django-html |
bib |
1.3.0 |
| djlint |
mon |
2025.5.0 |
| EditorConfig |
Edi |
0.17.4 |
| emojisense |
bie |
0.10.0 |
| even-better-toml |
tam |
0.21.2 |
| flake8 |
ms- |
2025.2.0 |
| gc-excelviewer |
Gra |
4.2.63 |
| git-graph |
mhu |
1.30.0 |
| gitlab-workflow |
Git |
6.35.0 |
| gitlens |
eam |
17.3.2 |
| hadolint |
exi |
1.1.2 |
| hexeditor |
ms- |
1.11.1 |
| html-css-class-completion |
Zig |
1.20.0 |
| isort |
ms- |
2025.0.0 |
| jenkinsfile-support |
sec |
0.1.0 |
| jinjahtml |
sam |
0.20.0 |
| js-debug |
ms- |
1.102.0 |
| js-debug-companion |
ms- |
1.1.3 |
| jupyter |
ms- |
2025.6.0 |
| jupyter-keymap |
ms- |
1.1.2 |
| jupyter-renderers |
ms- |
1.3.0 |
| jwt-decoder |
jfl |
1.2.0 |
| kitty-time |
QzS |
0.5.2 |
| live-server |
ms- |
0.4.15 |
| mako |
tom |
0.2.0 |
| markdown-all-in-one |
yzh |
3.6.3 |
| markdown-shortcuts |
mdi |
0.12.0 |
| mypy-type-checker |
ms- |
2025.2.0 |
| partial-diff |
ryu |
1.4.3 |
| presentationmode |
jsp |
1.1.5 |
| prettier-vscode |
esb |
11.0.0 |
| pylint |
ms- |
2025.2.0 |
| python |
ms- |
2025.10.1 |
| python-environment-manager |
don |
1.2.7 |
| rainbow-csv |
mec |
3.20.0 |
| remote-containers |
ms- |
0.422.1 |
| remote-explorer |
ms- |
0.5.0 |
| remote-server |
ms- |
1.5.2 |
| remote-ssh |
ms- |
0.120.0 |
| remote-ssh-edit |
ms- |
0.87.0 |
| remote-wsl |
ms- |
0.99.0 |
| rest-client |
hum |
0.25.1 |
| rewrap-revived |
dnu |
1.16.3 |
| ruff |
cha |
2025.24.0 |
| seito-openfile |
Fr4 |
2.3.0 |
| sublime-keybindings |
ms- |
4.1.10 |
| svg-preview |
Sim |
2.8.3 |
| tasks-context |
jsa |
1.0.0 |
| terraform |
has |
2.34.5 |
| timing |
Haa |
2.7.2 |
| todo-tree |
Gru |
0.0.226 |
| url-encode |
fle |
1.1.0 |
| vscode-base64 |
ada |
0.1.0 |
| vscode-containers |
ms- |
2.1.0 |
| vscode-coverage-gutters |
rya |
2.13.0 |
| vscode-djaneiro |
the |
1.4.2 |
| vscode-docker |
ms- |
2.0.0 |
| vscode-eslint |
dba |
3.0.10 |
| vscode-faker |
dee |
2.0.0 |
| vscode-fileutils |
sle |
3.10.3 |
| vscode-gutter-preview |
kis |
0.32.2 |
| vscode-htmlhint |
HTM |
1.11.1 |
| vscode-icons |
vsc |
12.13.0 |
| vscode-javascript-booster |
sbu |
14.0.1 |
| vscode-js-profile-table |
ms- |
1.0.10 |
| vscode-jupyter-cell-tags |
ms- |
0.1.9 |
| vscode-jupyter-slideshow |
ms- |
0.1.6 |
| vscode-markdownlint |
Dav |
0.60.0 |
| vscode-pets |
ton |
1.32.0 |
| vscode-postgres |
cko |
1.4.3 |
| vscode-pull-request-github |
Git |
0.114.3 |
| vscode-pylance |
ms- |
2025.7.1 |
| vscode-python-envs |
ms- |
1.2.0 |
| vscode-random |
jre |
1.12.0 |
| vscode-remote-extensionpack |
ms- |
0.26.0 |
| vscode-spotify |
shy |
3.2.1 |
| vscode-sql-formatter |
adp |
1.4.4 |
| vscode-sqlite |
ale |
0.14.1 |
| vscode-theme-superonedark |
sea |
0.0.15 |
| vscode-view-in-browser |
kop |
1.0.5 |
| vscode-yaml |
red |
1.18.0 |
| yaml-plus-json |
hil |
1.13.0 |
System Info
| Item |
Value |
| CPUs |
Apple M4 Pro (14 x 2400) |
| 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 skia_graphite: enabled_on video_decode: enabled video_encode: enabled webgl: enabled webgl2: enabled webgpu: enabled webnn: disabled_off |
| Load (avg) |
5, 4, 3 |
| Memory (System) |
48.00GB (6.69GB free) |
| Process Argv |
/Users/adamparkin/temp/sandbox/zapstorage --crash-reporter-id 7c29673d-541b-4c7d-8598-75a70ed69912 |
| Screen Reader |
no |
| VM |
0% |
A/B Experiments
vsliv368cf:30146710
binariesv615:30325510
h48ei257:31000450
nativeloc1:31344060
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
9064b325:31222308
copilot_t_ci:31333650
e5gg6876:31282496
pythoneinst12:31285622
c7cif404:31314491
pythonpulldiag:31343502
996jf627:31283433
pythonrdcb7:31342333
usemplatestapi:31297334
0aa6g176:31307128
747dc170:31275177
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
9d2cg352:31346308
convertlamdaf:31350062
usemarketplace:31343026
nesew2to5:31336538
agentclaude:31350858
b6b4d950:31327385
nes-diff-11:31337487
replacestringexc:31350595
nes-set-on:31351930
onetestforazureexpcf:31335614
6abeh943:31336334
envsactivate1:31353494
yijiwantestdri0626-c:31336931
0927b901:31350571
4gdec884:31348710
45650338:31356125
0cj2b977:31352657
Type: Bug
Behaviour
When I pick "Python: Select Interpreter" from the command pallette and then pick "Use Python from
python.defaultInterpreterPathsetting" I get a failed to resolve error: https://cdn.zappy.app/2af8899b7bd3748f8d924a85cd760381.pngThis seems to happen on all my projects. Probably worth noting: all my projects use poetry and store the virtual environment in a
.venvdirectory that is not at the top level of the project.Possibly related to !25190 If I symlink my
.venvdirectory tovenv(no period), then I have the option to select my virtual environment as a workspace option and it seems to select correctly.FWIW, the entry I have in
settings.jsonfordefaultInterpreterPathis:On other projects (where I get the same error) that path varies a bit, but generally is always
somedirectory/.venv/bin/pythonSteps to reproduce:
python.defaultInterpreterPathsetting"Diagnostic data
In the Python logs I see:
Extension version: 2025.10.1
VS Code version: Code 1.102.1 (Universal) (7adae6a56e34cb64d08899664b814cf620465925, 2025-07-15T16:41:17.147Z)
OS version: Darwin arm64 24.5.0
Modes:
python.languageServersetting: PylanceUser Settings
Installed Extensions
System Info
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
skia_graphite: enabled_on
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
A/B Experiments