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

"import akshare as ak" blocks the debugger after I upgrade to python 3.12.2 #1561

Open
shoutrain opened this issue Apr 8, 2024 · 1 comment

Comments

@shoutrain
Copy link

Environment data

  • debugpy version: v2024.4.0
  • OS and version: Windows 11 Pro 23H2 22631.3374
  • Python version (& distribution if applicable, e.g. Anaconda): 3.12.2(conda 24.3.0)
  • Using VS Code or Visual Studio: VS Code 1.88.0

Actual behavior

import akshare as ak

After I upgrade to python 3.12.2, the above sentence blocks the python debugger(other imports work), and "Run Without Debugging" works. It worked well before.

When I use following command to run python debugger in cmd, it works well

pytyon -m pdb run.py

So I think it's a bug of debugger extension of vscode instead of akshare lib.

And the owner of akshare lib suggested me to use pycharm instead of vscode to get around this issue, it costs a lot for me.

Expected behavior

"import akshare as ak" doesn't block debugger extension of vscode.

Steps to reproduce:

  1. create the following run.py file:
import akshare as ak

if __name__ == "__main__":
    print("it works")
  1. start debug, the process will be blocked. start "Debug Without Debugging", it works.

  2. remove the line: import akshare as ak, everything works well.

@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python-debugger Apr 8, 2024
@judej judej assigned debonte and unassigned debonte Oct 14, 2024
@gramster
Copy link
Member

gramster commented Feb 7, 2025

Potentially a duplicate of issue(s): #1560

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants