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

Debugger doesn't work for Python 3.10+ in conda environments #6964

Closed
AdamYoblick opened this issue Apr 19, 2022 · 1 comment
Closed

Debugger doesn't work for Python 3.10+ in conda environments #6964

AdamYoblick opened this issue Apr 19, 2022 · 1 comment
Assignees
Labels
needs investigation Could be an issue - needs investigation

Comments

@AdamYoblick
Copy link
Member

AdamYoblick commented Apr 19, 2022

Repro steps:

  1. Install miniconda
  2. Create a Python project
  3. Right click Python Environments -> Add Environment -> Conda environment
  4. Add the Python 3.10 package, shown below:

image

This is due to the following bug in conda: conda/conda#11072
One workaround is to run conda run -n <env> --no-capture-output --live-stream python <debugpy> instead of calling the conda python.exe directly, but it looks like there's another fix from the conda team.

Another easier workaround is to install a more recent version of zlib in that conda environment. See conda/conda#11072 (comment) in the issue above.

@AdamYoblick
Copy link
Member Author

Ok this seems to have fixed itself. Creating a new conda environment now uses the zlib package that contains the fix:

image

Old conda environments will need to update their zlib package as mentioned in the conda bug, at conda/conda#11072 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs investigation Could be an issue - needs investigation
Projects
None yet
Development

No branches or pull requests

2 participants