Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#1,561 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

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

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:

  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.

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/debugpy

Tutte le issue di microsoft/debugpy

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.