Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#1,561 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python, vscode

Research direction

Start with the minimal run.py reproduction containing import akshare as ak, using the reported Python 3.12.2, VS Code 1.88.0, and debugpy v2024.4.0 environment. Compare Debug with Run Without Debugging and python -m pdb run.py; done means the import no longer blocks the VS Code debugger.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Python
Stars
2.5k
Forks
202
Avg merge
5d 1h
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/debugpy

All issues in microsoft/debugpy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.