Skip to content

Python: Create Environment fails silently with bad interpreter #20062

Closed
@amunger

Description

@amunger

Type: Bug

This python environment is in bad shape, so the failure is somewhat expected, but I would hope to see an error message. Currently the info popup just goes away quickly and I need to search in the python logs to see what went wrong:

Running Env creation script:  [
  'C:\\Python310\\python.exe',
  'c:\\Users\\aamunger\\.vscode-insiders\\extensions\\ms-python.python-2022.17.12981046\\pythonFiles\\create_venv.py',
  '--git-ignore',
  '--install'
]
Error processing line 7 of C:\Users\aamunger\AppData\Roaming\Python\Python310\site-packages\pywin32.pth:


  Traceback (most recent call last):
    File "C:\Users\aamunger\AppData\Local\Programs\Python\Python310_5\Lib\site.py", line 186, in addpackage
      exec(line)
    File "<string>", line 1, in <module>
  ModuleNotFoundError: No module named 'pywin32_bootstrap'

Remainder of file ignored

Traceback (most recent call last):
  File "c:\Users\aamunger\.vscode-insiders\extensions\ms-python.python-2022.17.12981046\pythonFiles\create_venv.py", line 136, in <module>
    main(sys.argv[1:])
  File "c:\Users\aamunger\.vscode-insiders\extensions\ms-python.python-2022.17.12981046\pythonFiles\create_venv.py", line 116, in main

    raise VenvError("CREATE_VENV.PIP_NOT_FOUND")
__main__.VenvError: CREATE_VENV.PIP_NOT_FOUND

Extension version: 2022.17.12981046
VS Code version: Code - Insiders 1.73.0-insider (bece5db, 2022-10-24T05:31:12.081Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Sandboxed: Yes

System Info
Item Value
CPUs Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz (8 x 1498)
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
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) undefined
Memory (System) 31.59GB (14.71GB free)
Process Argv --crash-reporter-id 1202dc88-403d-4ebc-8393-af3551a8bd5b
Screen Reader no
VM 0%
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vslsvsres303:30308271
pythonvspyl392:30422396
pythontb:30258533
pythonptprofiler:30281269
vshan820:30294714
pythondataviewer:30285072
vscod805cf:30301675
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30404738
cppdebug:30492333
vsclangdf:30492506
c4g48928:30535728
dsvsc012:30540252
pylantcb52:30590116
pyind367:30587847
vsccc:30564266
pyindex848:30577858
nodejswelcome1:30587009
34cci188:30595212

Metadata

Metadata

Assignees

Labels

area-environmentsFeatures relating to handling interpreter environmentsauthor-verification-requestedIssues potentially verifiable by issue authorbugIssue identified by VS Code Team member as probable bugneeds PRReady to be worked onverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions