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-config debugger can't detect conda env #638

Open
Chuong98CC opened this issue Feb 26, 2025 · 4 comments
Open

no-config debugger can't detect conda env #638

Chuong98CC opened this issue Feb 26, 2025 · 4 comments
Assignees
Labels
triage-needed Needs assignment to the proper sub-team

Comments

@Chuong98CC
Copy link

when using the no-config debugger recently released in version 1.97.2, i can't get the debugger working with conda env.
it keeps using the default base env:
in the debug console, i check for the current env:

import sys
sys.executable
'/home/linuxbrew/.linuxbrew/opt/[email protected]/bin/python3.13'

my conda env is settup using python select intepretter, and in terminal, it automatically select the correct env, but not with debugpy

Image

Here are the other screenshots that I tried all the recommended setting found on the wiki page

Image

Image

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Feb 26, 2025
@karthiknadig
Copy link
Member

@Chuong98CC Can you share what binaries you have in the conda environment? If I remember correctly, debugpy command tries to run python3, it assumes that environment managers add python3 in the environment. My guess is that the environment has only python executable.

@Chuong98CC
Copy link
Author

My conda env uses Python 3.10. Can you elaborate how to check for the binary files?

@karthiknadig
Copy link
Member

Try running this from a terminal:

> conda run -n <envname> python -c "import sys; print(sys.executable)"

It should print eh path to the executable (similar to the script in your comment above). go to the directory containing the executable, and run ls | grep python

@Chuong98CC
Copy link
Author

thanks @karthiknadig
here is the screenshot

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

3 participants