Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Project .venv/bin/python failing to activate #21907

Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
@janhurst

Description

@janhurst
Issue body actions

Type: Bug

Behaviour

Expected vs. Actual

My local project .venv/bin/python appears to quite suddenly have stopped working. I see ENOENT: no such file or directory, lstat '.venv/bin/python' being reported in the Python output.

Steps to reproduce:

Literally just reopened a perfectly working container :(

Diagnostic data

- Python via system package in Ubuntu dev container: 3.10.12 - poetry venv - Value of the `python.languageServer` setting: Default

2023-09-01 06:59:48.081 [info] Experiment 'pythonPromptNewFormatterExt' is active
2023-09-01 06:59:48.081 [info] Experiment 'pythonPromptNewToolsExt' is active
2023-09-01 06:59:48.081 [info] Experiment 'pythonSurveyNotificationcf' is active
2023-09-01 06:59:48.518 [info] Test server listening.
2023-09-01 06:59:48.529 [info] Python interpreter path: /usr/local/python/current/bin/python
2023-09-01 06:59:49.049 [warning] Failed to check if .venv/bin/python is an executable [Error: ENOENT: no such file or directory, lstat '.venv/bin/python'] {
errno: -2,
code: 'ENOENT',
syscall: 'lstat',
path: '.venv/bin/python'
}
2023-09-01 06:59:50.378 [info] > conda info --json
2023-09-01 06:59:50.450 [warning] Identifier for virt-virtualenv failed to identify .venv/bin/python [Error: ENOENT: no such file or directory, scandir '.venv/bin'] {
errno: -2,
code: 'ENOENT',
syscall: 'scandir',
path: '.venv/bin'
}
2023-09-01 06:59:50.615 [info] > .venv/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.14.0/pythonFiles/interpreterInfo.py
2023-09-01 06:59:50.835 [error] Error: Command failed: .venv/bin/python -I /home/vscode/.vscode-server/extensions/ms-python.python-2023.14.0/pythonFiles/get_output_via_markers.py /home/vscode/.vscode-server/extensions/ms-python.python-2023.14.0/pythonFiles/interpreterInfo.py
/bin/sh: 1: .venv/bin/python: not found

at ChildProcess.exithandler (node:child_process:400:12)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1093:16)
at Socket.<anonymous> (node:internal/child_process:451:11)
at Socket.emit (node:events:513:28)
at Pipe.<anonymous> (node:net:757:14) {

code: 127,
killed: false,
signal: null,
cmd: '.venv/bin/python -I /home/vscode/.vscode-server/extensions/ms-python.python-2023.14.0/pythonFiles/get_output_via_markers.py /home/vscode/.vscode-server/extensions/ms-python.python-2023.14.0/pythonFiles/interpreterInfo.py'
}
2023-09-01 06:59:51.372 [info] Starting Pylance language server.
2023-09-01 06:59:52.850 [info] > .venv/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.14.0/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.14.0/pythonFiles/interpreterInfo.py
2023-09-01 06:59:52.852 [error] Error: Command failed: .venv/bin/python -I /home/vscode/.vscode-server/extensions/ms-python.python-2023.14.0/pythonFiles/get_output_via_markers.py /home/vscode/.vscode-server/extensions/ms-python.python-2023.14.0/pythonFiles/interpreterInfo.py
/bin/sh: 1: .venv/bin/python: not found

at ChildProcess.exithandler (node:child_process:400:12)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1093:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) {

code: 127,
killed: false,
signal: null,
cmd: '.venv/bin/python -I /home/vscode/.vscode-server/extensions/ms-python.python-2023.14.0/pythonFiles/get_output_via_markers.py /home/vscode/.vscode-server/extensions/ms-python.python-2023.14.0/pythonFiles/interpreterInfo.py'
}

Extension version: 2023.14.0
VS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:22:42.175Z)
OS version: Windows_NT x64 10.0.23531
Modes:
Remote OS version: Linux x64 5.15.90.4-microsoft-standard-WSL2
Remote OS version: Linux x64 5.15.90.4-microsoft-standard-WSL2

System Info
Item Value
CPUs AMD Ryzen 9 7950X3D 16-Core Processor (32 x 4192)
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) 63.74GB (26.50GB free)
Process Argv --crash-reporter-id bfc2135e-0324-43ed-9c92-9a276a23ffe7
Screen Reader no
VM 0%
Item Value
Remote Dev Container: psa
OS Linux x64 5.15.90.4-microsoft-standard-WSL2
CPUs AMD Ryzen 9 7950X3D 16-Core Processor (32 x 4192)
Memory (System) 47.04GB (41.25GB free)
VM 0%
Item Value
Remote Dev Container: psa
OS Linux x64 5.15.90.4-microsoft-standard-WSL2
CPUs AMD Ryzen 9 7950X3D 16-Core Processor (32 x 4192)
Memory (System) 47.04GB (41.25GB free)
VM 0%
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
vscccc:30803845
282f8724:30602487
89544117:30613380
2i9eh265:30646982
showlangstatbar:30737416
03d35959:30757346
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxptcf:30805731
pythonnoceb:30805159
asynctok:30821568
dsvsc013:30795093
dsvsc014:30804076
diffeditorv1:30821571
dsvsc015:30823817

Metadata

Metadata

Assignees

Labels

info-neededIssue requires more information from posterIssue requires more information from postertriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.