Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"No pip installer available" when configuring test #22635

Closed
l-vincent-l opened this issue Dec 12, 2023 · 4 comments
Closed

"No pip installer available" when configuring test #22635

l-vincent-l opened this issue Dec 12, 2023 · 4 comments
Assignees
Labels
area-testing info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@l-vincent-l
Copy link

Type: Bug

Behaviour

Expected vs. Actual

Everything was working fine until today, tests were discovered and I could run them.

But today I'm asked to configure tests, when I do that I have an error message "There is no pip installer available in the selected environment".

image

I’m expecting to discover tests.

When I go in the terminal panel I can run python -c "import pip" without error.

Steps to reproduce:

Click on testing, click on Configure Python Tests, select pytest, select my directory.

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.11.6
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
  • Value of the python.languageServer setting: Default
Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

2023-12-12 14:15:39.347 [info] Discover tests for workspace name: insitu - uri: /home/vincent/dev/insitu
2023-12-12 14:15:39.347 [info] Running discovery for pytest using the new test adapter.
2023-12-12 14:15:42.156 [info] > ~/.virtualenvs/insitu -c "import pytest"
2023-12-12 14:15:42.170 [info] > ~/.virtualenvs/insitu -c "import pip"

User Settings


venvPath: "<placeholder>"

languageServer: "Pylance"

testing
• pytestArgs: "<placeholder>"
• pytestEnabled: true

Extension version: 2023.22.0
VS Code version: Code 1.85.0 (af28b32d7e553898b2a91af498b1fb666fdebe0c, 2023-12-06T22:27:05.695Z)
OS version: Linux x64 6.5.0-14-generic snap
Modes:

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz (8 x 4293)
GPU Status 2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: disabled_off
Load (avg) 1, 1, 1
Memory (System) 31.05GB (22.73GB free)
Process Argv --no-sandbox . --crash-reporter-id eadd0699-c0d6-4c8d-96a7-d3cdac6dce2b
Screen Reader no
VM 0%
DESKTOP_SESSION ubuntu-xorg
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP ubuntu-xorg
XDG_SESSION_TYPE x11
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263:30899288
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
azure-dev_surveyone:30548225
282f8724:30602487
f6dab269:30613381
2i9eh265:30646982
showlangstatbar:30737416
0bi6i642:30917235
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
welcomedialog:30910333
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
dsvsc013:30795093
dsvsc014:30804076
dsvsc015:30845448
pythontestfixt:30902429
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
accentitlementst:30887150
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
aa_t_chat:30882232
dsvsc019cf:30917260

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Dec 12, 2023
@bertomaniac
Copy link

I'm seeing the exact same thing when I upgraded to v2023.22. I downgraded to v2023.20 and tests were discoverable again.

@eleanorjboyd
Copy link
Member

Hi! Can you try again but specify the full path to selected python when running python -c "import pip". It might not be looking at the right place if you are seeing this issue. Thanks

@eleanorjboyd eleanorjboyd added the info-needed Issue requires more information from poster label Dec 12, 2023
@smoy
Copy link

smoy commented Dec 12, 2023

this is likely the same as #22618

@eleanorjboyd
Copy link
Member

closing as this is the same issue as mentioned above, please view that issue for updates. Please comment if this is incorrect and I can reopen this issue. Thanks

@eleanorjboyd eleanorjboyd closed this as not planned Won't fix, can't repro, duplicate, stale Dec 13, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-testing info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

5 participants