Importing pypinyin takes too much time (around 10min)
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
- Domain
- devtools, operating-systems
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
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/debugpy
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
All issues in microsoft/debugpy
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
xinnan-tech/xiaozhi-fde-talk#263 ·
-
rules
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
huggingface/Repo2RLEnv#163 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 95/100
huggingface/sentence-transformers#4074 ·
-
comp/dashboard invalid P3
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
NousResearch/hermes-agent#121143 ·