"import akshare as ak" blocks the debugger after I upgrade to python 3.12.2
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- python, vscode
- Ambito
- developer-experience, tooling
Direzione di ricerca
Inizia con la riproduzione minima di run.py contenente import akshare as ak, utilizzando l’ambiente segnalato con Python 3.12.2, VS Code 1.88.0 e debugpy v2024.4.0. Confronta Debug con Run Without Debugging e python -m pdb run.py; il lavoro è completato quando l’importazione non blocca più il debugger di VS Code.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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:
- create the following run.py file:
import akshare as ak
if __name__ == "__main__":
print("it works")
-
start debug, the process will be blocked. start "Debug Without Debugging", it works.
-
remove the line: import akshare as ak, everything works well.
- Lingua principale
- Python
- Stelle
- 2.5k
- Fork
- 202
- Merge medio
- 5g 1h
- PR unite (30g)
- 1
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoft/debugpy
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Document "rules"-option Apertadocumentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
Adapter bootstrap fails with ConnectionRefusedError on WSL2 VirtioProxy or hostAddressLoopback Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
Tutte le issue di microsoft/debugpy
Issue simili
-
area: harness bug status: needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Human-Agent-Society/reef#625 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
learningequality/kolibri#15351 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Name consistency Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
eellak/triplestore#65 · 1 commento ·