Skip to content

Creating a conda without a python environment does not install python into it when selecting #18753

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

Closed
rchiodo opened this issue Mar 22, 2022 · 4 comments · Fixed by #18771
Closed
Assignees
Labels
area-environments Features relating to handling interpreter environments bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@rchiodo
Copy link

rchiodo commented Mar 22, 2022

Testing #18731

Steps:

  1. Create new conda environment
  2. Pick it as the active interpreter

Expected the 'Installing python' to popup.

It didn't.

Running with it uses my global python.

(testNoPython1) (testNoPython1) PS D:\Source\Testing_3> whereis python.exe
C:\Users\aku91\AppData\Local\Microsoft\WindowsApps\python.exe
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Mar 22, 2022
@karrtikr
Copy link

Unfortunately I cannot reproduce this, can you please provide the logs and name of the env you created? Make sure to set python.logging.level to debug in User settings.

@rchiodo
Copy link
Author

rchiodo commented Mar 23, 2022

I can't repro it anymore because of this bug #18751. I only get the one original environment I had yesterday. Let me try deleting everything and starting over

@rchiodo
Copy link
Author

rchiodo commented Mar 23, 2022

Okay starting over I have the same problem (although it looks like #18751 is still causing issues).

I created two new environments:

(base) C:\Users\aku91>conda env list
# conda environments:
#
base                  *  C:\Users\aku91\miniconda3
AboutToInstallConda      C:\Users\aku91\miniconda3\envs\AboutToInstallConda
Conda37                  C:\Users\aku91\miniconda3\envs\Conda37
CustomJupyter            C:\Users\aku91\miniconda3\envs\CustomJupyter
NoIpykernel              C:\Users\aku91\miniconda3\envs\NoIpykernel
PoetryBase               C:\Users\aku91\miniconda3\envs\PoetryBase
RunPythonTest            C:\Users\aku91\miniconda3\envs\RunPythonTest
abouttoinstallconda      C:\Users\aku91\miniconda3\envs\abouttoinstallconda
base_sub1                C:\Users\aku91\miniconda3\envs\base_sub1
base_sub2                C:\Users\aku91\miniconda3\envs\base_sub2
conda310                 C:\Users\aku91\miniconda3\envs\conda310
condaEnvTest             C:\Users\aku91\miniconda3\envs\condaEnvTest
condaTestPath            C:\Users\aku91\miniconda3\envs\condaTestPath
condaTestQT5             C:\Users\aku91\miniconda3\envs\condaTestQT5
env                      C:\Users\aku91\miniconda3\envs\env
golden_scenario_env      C:\Users\aku91\miniconda3\envs\golden_scenario_env
idom_kernel              C:\Users\aku91\miniconda3\envs\idom_kernel
ipykernel_test           C:\Users\aku91\miniconda3\envs\ipykernel_test
jupyterlabTest           C:\Users\aku91\miniconda3\envs\jupyterlabTest
matchInterpreterTest     C:\Users\aku91\miniconda3\envs\matchInterpreterTest
mit2                     C:\Users\aku91\miniconda3\envs\mit2
plotlyDev                C:\Users\aku91\miniconda3\envs\plotlyDev
python36                 C:\Users\aku91\miniconda3\envs\python36
python38_py2exe          C:\Users\aku91\miniconda3\envs\python38_py2exe
python38_pyinstaller     C:\Users\aku91\miniconda3\envs\python38_pyinstaller
testEmpty                C:\Users\aku91\miniconda3\envs\testEmpty
testNoPython5            C:\Users\aku91\miniconda3\envs\testNoPython5
testNoPython6            C:\Users\aku91\miniconda3\envs\testNoPython6
testPython38             C:\Users\aku91\miniconda3\envs\testPython38
testSysPath              C:\Users\aku91\miniconda3\envs\testSysPath
testempty                C:\Users\aku91\miniconda3\envs\testempty

testNoPython5 and testNoPython6 in that list

I opened VS code and picked select interpreter.

I get just this:

image

And it looks like it's using my global python.

Here's the output log:
pythonlog.txt

@karthiknadig karthiknadig added bug Issue identified by VS Code Team member as probable bug triage area-environments Features relating to handling interpreter environments and removed triage-needed Needs assignment to the proper sub-team labels Mar 23, 2022
@karrtikr karrtikr added investigating We are looking into the cause of the issue needs PR and removed triage investigating We are looking into the cause of the issue labels Mar 23, 2022
@karrtikr karrtikr reopened this Mar 23, 2022
@karrtikr karrtikr added investigating We are looking into the cause of the issue and removed needs PR labels Mar 23, 2022
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Mar 23, 2022
@rchiodo
Copy link
Author

rchiodo commented Mar 23, 2022

Updated python extension and repro'd again. New log:
pythonlog.txt

@karrtikr karrtikr added needs PR and removed triage-needed Needs assignment to the proper sub-team investigating We are looking into the cause of the issue labels Mar 24, 2022
@karrtikr karrtikr added the verification-needed Verification of issue is requested label Mar 24, 2022
@karrtikr karrtikr added this to the March 2022 milestone Mar 24, 2022
@karrtikr karrtikr added verified Verification succeeded and removed verification-needed Verification of issue is requested labels Mar 24, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-environments Features relating to handling interpreter environments bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants