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

Importing pypinyin takes too much time (around 10min)

Open
#1,616 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
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python, vscode

Research direction

Start by reproducing the delay on Windows 10 with Python 3.10–3.12, VS Code debugger 2024.6.0, and pypinyin 0.51.0, comparing debugger startup with direct execution and REPL import. Trace the debugger startup to identify whether the delay is in debugpy or the surrounding environment; done means the cause is isolated and a regression test or verified fix covers it.

Written by the indexing model from the issue text.

Description

bug

Importing pypinyin takes a long time (about 10 minutes) when starting the debugger in vscode, with slightly high CPU usage (20%).

It works fine with python ./script.py and import in REPL. Not sure if it's the vscode debugger's problem, anyway, issues have been filed on both sides.

Tested on mac and it works fine, the problem only occurs on windows.

(I suspected conda and venv, but it's still the same after removing them)

python: 3.10~3.12
windows 10
vscode python debugger 2024.6.0
pypinyin 0.51.0

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.