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

Add support python interpreter from micromamba #21672

Closed
Wongboo opened this issue Jul 21, 2023 · 4 comments
Closed

Add support python interpreter from micromamba #21672

Wongboo opened this issue Jul 21, 2023 · 4 comments
Assignees
Labels
feature-request Request for new features or functionality info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@Wongboo
Copy link

Wongboo commented Jul 21, 2023

I used python interpreter from system, conda, mamba and micromamba. The extension detects python from first three sources correctly, but fails to detect python from micromamba.
micromamba uses $MAMBA_ROOT_PREFIX the same way as mamba, but locates in ~/micromamba by default. So its python interpreter locates in $MAMBA_ROOT_PREFIX/envs/**/bin/python.
Also when using a env from micromamba, since the env does not necessarily contains conda. So

conda activate env_name

should be replaced by

micromamba activate env_name
@Wongboo Wongboo added the feature-request Request for new features or functionality label Jul 21, 2023
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Jul 21, 2023
@karrtikr
Copy link

While we don't officially support it yet, you could set "python.condaPath" setting to "micromamba" and it should work for most use cases. To discover the env automatically, look into python.venvPath setting.

@karrtikr karrtikr added the info-needed Issue requires more information from poster label Jul 21, 2023
@Wongboo
Copy link
Author

Wongboo commented Jul 22, 2023

While we don't officially support it yet, you could set "python.condaPath" setting to "micromamba" and it should work for most use cases. To discover the env automatically, look into python.venvPath setting.

It seems that this does no help.

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Jul 22, 2023
@GarrisonD
Copy link

I have the same problem. When I set python.condaPath to /usr/local/bin/micromamba, VS Code is trying this when I create a new terminal:

> source /usr/local/bin/activate /opt/conda/envs/my-env

bash: /usr/local/bin/activate: No such file or directory

Python extension output:

2023-07-22 11:01:52.460 [info] > /usr/local/bin/micromamba info --json
2023-07-22 11:01:52.845 [info] Send text to terminal: source /usr/local/bin/activate /opt/conda/envs/my-env

@karrtikr
Copy link

Closing in favor of #20919 as something to consider implementing at some point in the future. We do encourage people to continue 👍 the first/opening comment there as it helps us prioritize our work based on what the community seems to want the most.

@karrtikr karrtikr closed this as not planned Won't fix, can't repro, duplicate, stale Jul 24, 2023
@github-actions github-actions bot added the info-needed Issue requires more information from poster label Jul 24, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality 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

3 participants