"import akshare as ak" blocks the debugger after I upgrade to python 3.12.2
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- python, vscode
調査の方向性
import akshare as ak を含む最小限の run.py の再現から始め、報告された Python 3.12.2、VS Code 1.88.0、debugpy v2024.4.0 の環境を使用します。Debug と Run Without Debugging、および python -m pdb run.py を比較します。import によって VS Code デバッガーがブロックされなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Python
- スター
- 2.5k
- フォーク
- 202
- 平均マージ
- 5日 1時間
- マージ済み PR(30日)
- 1
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/debugpy のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
microsoft/debugpy の issue をすべて見る
似ている issue
-
area: harness bug status: needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Human-Agent-Society/reef#625 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
learningequality/kolibri#15351 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
Name consistency オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
eellak/triplestore#65 · コメント 1 件 ·